Database structure for multisites
Network-level tables that are shared by all sites on the multisite network:
wp_blogswp_blog_versionswp_registration_logwp_signupswp_sitewp_sitemetawp_userswp_usermeta
Tables for the main site (ID 1)
The main site of a multisite network (reserved for administrative purposes) is site ID 1. Tables for the main site are prefixed by wp_:
wp_commentmetawp_commentswp_linkswp_optionswp_postmetawp_postswp_termswp_term_relationshipswp_term_taxonomywp_termmeta
Tables for a network site (not ID 1)
By default, every site on the network has the same set of tables as the main site (ID 1), but with a different prefix. Tables for network sites other than ID 1 are prefixed by wp_, followed by the site’s ID, followed by an underscore (_).
For example, the tables for a network site with ID 2 are:
wp_2_commentmetawp_2_commentswp_2_linkswp_2_optionswp_2_postmetawp_2_postswp_2_termswp_2_term_relationshipswp_2_term_taxonomywp_2_termmeta
Last updated: December 26, 2023