WordPress — Where are the pages and posts stored?

Marc Wag­ner

March 16, 2021

1 min read|

Word­Press stores all data of your posts, pages, pro­ducts, revi­si­ons and images in a MyS­QL data­ba­se.

Depen­ding on your con­fi­gu­ra­ti­on, this starts with a so-cal­­led pre­fix. By default, Word­Press puts the pre­fix “wp_” in front of the tables.

For tech­ni­cal reasons, the data is dis­tri­bu­ted into seve­ral tables. The most important tables include wp_posts, wp_posts_meta and wp_options.

NameDescrip­ti­on
wp_postsCon­tri­bu­ti­ons, pages, pro­ducts, revi­si­ons and attach­ments are stored here. The stan­dard fields such as title, con­tent and excerp­ts are stored here. Dates can also be found here.
wp_posts_metaAddi­tio­nal infor­ma­ti­on is stored here. This includes e.g. addi­tio­nal fields, time stamps, opti­ons for posts and indi­vi­du­al post types.
wp_optionsGene­ral opti­ons are usual­ly stored in the wp_options. Here you can find the stan­dard fields of Word­Press like email address, title of the page and URL most­ly also the­me opti­ons.

You can usual­ly access the data­ba­se via your hos­ting pro­vi­der. To do this, log in to your pro­vi­der and look for a link to the “data­ba­se”. Most pro­vi­ders allow you to access your data­ba­se via the PhpMy­Ad­min web appli­ca­ti­on.

You can find the name of your data­ba­se in the con­fi­gu­ra­ti­on file of Word­Press. Con­nect to your ser­ver via FTP and open the file wp-config.php.

The­re you will find an ent­ry DB_NAME, behind which the name of the data­ba­se is stored.

define('DB_NAME','database_name_here');

Fur­ther­mo­re, you will find the ent­ries DB_USER and DB_PASSWORD.

define('DB_USER','database_username');
define('DB_PASSWORD','database_password');

With this infor­ma­ti­on, you can log in to PhpMy­Ad­min.

88e86fcb816eff22bc917094df2862d8dd5c0e978b333e6dd5f36f808990c261 96

Arti­kel von:

Marc Wag­ner

Hi Marc here. I’m the foun­der of Forge12 Inter­ac­ti­ve and have been pas­sio­na­te about buil­ding web­sites, online stores, appli­ca­ti­ons and SaaS solu­ti­ons for busi­nesses for over 20 years. Befo­re foun­ding the com­pa­ny, I alre­a­dy work­ed in publicly lis­ted com­pa­nies and acqui­red all kinds of know­ledge. Now I want to pass this know­ledge on to my cus­to­mers.

Hast du eine Fra­ge? Hin­ter­lass bit­te einen Kom­men­tar