Where do I find my database table prefix?

There are a few of places to find this. The most certain way is to look inside your wp-config.php file, which you’ll find in the root folder of your WordPress install.

You should see a line in that file (usually about halfway down) that begins with $table_prefix. The text in quotes following that is what you’re looking for. In the example below (and generally by default), this is wp_.

$table_prefix = 'wp_';

You can also view your database directly through phpMyAdmin or your host's database manager. Your database prefix will be the text which is shared by all of the WordPress tables.

Managed hosts may also have a place to view your database prefix from the site’s dashboard. (The database prefix of Flywheel sites, for example, can be found in the Advanced tab of the site’s Flywheel dashboard.)

Back to FAQs | Home