What is the default table prefix for the WordPress database?

The default prefix is wp_, so the tables are named wp_posts, wp_options and so on. It is set in wp-config.php:

Terminal output

$ wp config get table_prefix
wp_
$ wp db prefix
wp_

You can choose another prefix when you install the site (like site1_), which also lets many sites share one database. In code, never write the prefix by hand, use $wpdb->prefix or $wpdb->posts.


Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
How many default tables are in a WordPress database?
Where is the WordPress content stored?
What is the default table prefix for the WordPress database?