WordPress — Where are the pages and posts stored?

Marc Wagner, July 22, 2022

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.

Avatar of Marc Wagner
Marc Wagner

Hi Marc here. I'm the founder of Forge12 Interactive and have been passionate about building websites, online stores, applications and SaaS solutions for businesses for over 20 years. Before founding the company, I already worked in publicly listed companies and acquired all kinds of knowledge. Now I want to pass this knowledge on to my customers.

Similar Topics

Comments

Leave A Comment