Upon installation, WordPress defaults to having 12 core database tables. These tables each serve distinct functions, covering the fundamental operations of a WordPress site. The 12 tables are:
- wp_posts - Stores data for posts, pages, and custom post types.
- wp_postmeta - Stores metadata related to posts.
- wp_comments - Stores user comments on posts.
- wp_commentmeta - Stores metadata related to comments.
- wp_terms - Stores categories and tags.
- wp_termmeta - Stores metadata for categories and tags.
- wp_term_taxonomy - Defines the relationships between categories and tags.
- wp_term_relationships - Links posts to categories and tags.
- wp_users - Stores user information.
- wp_usermeta - Stores metadata related to users.
- wp_links - Stores data related to the link manager.
- wp_options - Stores site settings and other configuration options.
These tables collectively support WordPress functionalities such as content management, user management, and category/tag management. When WordPress updates, it may add new database tables or fields to support new features.
2024年8月16日 20:31 回复