wordpress数据库描述<转>
?请注意,在wp的标准安装过程中表之间的完整性不是强制性的,比如文章和评论之间。如果你正在创建操作数据库的插件或扩展,你的代码应该做些清理工作,以便没有无用的记录留在表里。比如当外键被删除时,使用一个SQL命令集来删除其它表中的数据(不要忘记提醒用户,在进行此类操作前进行备份)。
wp2.8数据表(10)表名描述WordPress用户界面相关区域wp_commentsWordPress中的评论?存储在wp_comments表中评论是由读者创建的作为对文章的回应。评论由管理员管理,通过管理?>?评论?>?评论wp_linkswp_links?保存包含在WordPress?Linksfeature部分的链接的相关信息。- 管理?>?链接?>?添加
- 管理?>?链接?>?编辑wp_options管理 >?设置面板下的选项存储在wp_options表里。
- 管理?>?设置?>?常规
- 管理?>?设置?>?撰写
- 管理?>?设置?>?阅读
- 管理?>?设置?>?讨论
- 管理?>?设置?>?隐私
- 管理?>?设置?>?固定链接
- 管理?>?设置?>?杂项
- 管理?>?外观?>?小工具wp_postmeta每篇文章的特性信息被称为元数据,它存储在wp_postmeta. 有些插件可能会添加他们自己的信息到这个表里.
- 管理?>?文章?>?添加
- 管理?>?页面?>?添加wp_posts数据的核心是文章,它存储在wp_posts表.
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑
- 管理?>?页面?>?添加
- 管理?>?页面?>?编辑
- 管理?>?媒体?>?添加
- 管理?>?媒体?>?媒体库wp_terms文章和链接分类以及文章的tag分类可以在wp_terms表里找到.
- 管理?>?文章?>?Tags
- 管理?>?文章?>?分类
- 管理?>?链接?>?链接分类
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑wp_term_relationships与文章有关的分类、来自wp_terms表的tags以及这一关联存在于wp_term_relationships表里.?链接与各自分类的联系也存储于这张表中.wp_term_taxonomy这张表描述了wp_terms表中每个条目的分类系统 (分类,链接,或tag).wp_usermeta每个用户的特性信息称为元数据,它存储在wp_usermeta.
- 管理?>?用户wp_users用户列表存在于wp_users表.
- 管理?>?用户
KeynameTypeCardinalityFieldPRIMARYPRIMARY1IDuser_login_keyINDEXNoneuser_loginuser_nicenameINDEXNoneuser_nicename
Site Specific Tables
When a new additional site is created, the site-specific tables, similar to?the stand-alone tables above, are created. Each set of tables for a site are created with the site ID (blog_id) as part of the table name. These are the tables that would be created for site ID?2?and?table_prefix?wp:
- wp_2_commentmeta
- wp_2_comments
- wp_2_links
- wp_2_options
- wp_2_postmeta
- wp_2_posts
- wp_2_terms
- wp_2_term_relationships
- wp_2_term_taxonomy
The data of the main site are stored in unnumbered tables.
资源- A look inside the WordPress database?一篇Leonid Mamchenkov 的关于数据库表的深入探讨.
更新日志- 3.0?:
- comments table: 增加
comment_parent索引. - posts table: 增加
post_author索引. - 开启Multisite特性时:
- 增加multisite tables.
- 增加
spam和deleted字段到users table.- 2.9?:
- commentmeta table: 用于存储评论相关的数据.
- options table: 增加唯一索引
option_name. - 更新了数据库图表
- 2.8?:
- comments table?: 修改?
comment_post_ID?列为 bigint(20), unsigned. - links table?: 删除?
link_category?列. - posts table: 删除?
post_category?列. - term_taxonomy table:添加键?
taxonomy. - 添加 unsigned 属性到类型为 bigint(20) 的字段.
- 2.7?:
- term table?: 修改?
name?字段?varchar(55)?->?varchar(200). - 添加键?
name?到?term table. - 添加键?
post_parent?到?posts table. - 2.5?:
- 所有?
enum?类型字段改为?varchar(20):- comments table:?
comment_approved?field - links table:?
link_visible - options table:?
autoload - posts table:?
post_status,?comment_status,?ping_status - 添加键?
comment_approved_date_gmt?和?comment_date_gmt?到?comments table. - 添加?
term_order?字段到?term_relationships table - 参见:?Migrating Plugins and Themes to 2.5 - Database changes
- 2.3?:
- 添加?terms,?term_taxonomy?and?term_relationships?表. 删除?
categories,?link2cat和?post2cat表. - 删除?options table中的6个字段. (
option_can_override,?option_type,?option_width,?option_height,?option_description, and?option_admin_level) - 添加新状态?
'pending'到posts table的post_status字段. - 参见:?WordPress Taxonomy
- 2.1?:
- 删除
linkcategories表. 链接分类数据合并到categories表, 重设IDs. - 添加
post_type字段到posts table?(in 2.0.x,?post_status?=?'static'?for?Pages) - 添加新状态?
'future'?posts table的?post_status字段 , 代替2.0.x版本中的?NOW(). - 参见:?Migrating Plugins and Themes to 2.1 - Core WordPress Database Changes
?http://codex.wordpress.org/zh-cn:%E6%95%B0%E6%8D%AE%E5%BA%93%E6%8F%8F%E8%BF%B0#Table:_wp_comments
- 管理?>?设置?>?常规
- 管理?>?设置?>?撰写
- 管理?>?设置?>?阅读
- 管理?>?设置?>?讨论
- 管理?>?设置?>?隐私
- 管理?>?设置?>?固定链接
- 管理?>?设置?>?杂项
- 管理?>?外观?>?小工具wp_postmeta每篇文章的特性信息被称为元数据,它存储在wp_postmeta. 有些插件可能会添加他们自己的信息到这个表里.
- 管理?>?文章?>?添加
- 管理?>?页面?>?添加wp_posts数据的核心是文章,它存储在wp_posts表.
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑
- 管理?>?页面?>?添加
- 管理?>?页面?>?编辑
- 管理?>?媒体?>?添加
- 管理?>?媒体?>?媒体库wp_terms文章和链接分类以及文章的tag分类可以在wp_terms表里找到.
- 管理?>?文章?>?Tags
- 管理?>?文章?>?分类
- 管理?>?链接?>?链接分类
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑
- 管理?>?文章?>?添加
- 管理?>?文章?>?编辑wp_term_relationships与文章有关的分类、来自wp_terms表的tags以及这一关联存在于wp_term_relationships表里.?链接与各自分类的联系也存储于这张表中.wp_term_taxonomy这张表描述了wp_terms表中每个条目的分类系统 (分类,链接,或tag).wp_usermeta每个用户的特性信息称为元数据,它存储在wp_usermeta.
- 管理?>?用户wp_users用户列表存在于wp_users表.
- 管理?>?用户
KeynameTypeCardinalityFieldPRIMARYPRIMARY1IDuser_login_keyINDEXNoneuser_loginuser_nicenameINDEXNoneuser_nicename
Site Specific Tables
When a new additional site is created, the site-specific tables, similar to?the stand-alone tables above, are created. Each set of tables for a site are created with the site ID (
blog_id) as part of the table name. These are the tables that would be created for site ID?2?and?table_prefix?wp:- wp_2_commentmeta
- wp_2_comments
- wp_2_links
- wp_2_options
- wp_2_postmeta
- wp_2_posts
- wp_2_terms
- wp_2_term_relationships
- wp_2_term_taxonomy
The data of the main site are stored in unnumbered tables.
资源
- A look inside the WordPress database?一篇Leonid Mamchenkov 的关于数据库表的深入探讨.
更新日志
- 3.0?:
- comments table: 增加
comment_parent索引. - posts table: 增加
post_author索引. - 开启Multisite特性时:
- 增加multisite tables.
- 增加
spam和deleted字段到users table.- 2.9?:
- commentmeta table: 用于存储评论相关的数据.
- options table: 增加唯一索引
option_name. - 更新了数据库图表
- 2.8?:
- comments table?: 修改?
comment_post_ID?列为 bigint(20), unsigned. - links table?: 删除?
link_category?列. - posts table: 删除?
post_category?列. - term_taxonomy table:添加键?
taxonomy. - 添加 unsigned 属性到类型为 bigint(20) 的字段.
- 2.7?:
- term table?: 修改?
name?字段?varchar(55)?->?varchar(200). - 添加键?
name?到?term table. - 添加键?
post_parent?到?posts table. - 2.5?:
- 所有?
enum?类型字段改为?varchar(20):- comments table:?
comment_approved?field - links table:?
link_visible - options table:?
autoload - posts table:?
post_status,?comment_status,?ping_status - 添加键?
comment_approved_date_gmt?和?comment_date_gmt?到?comments table. - 添加?
term_order?字段到?term_relationships table - 参见:?Migrating Plugins and Themes to 2.5 - Database changes
- 2.3?:
- 添加?terms,?term_taxonomy?and?term_relationships?表. 删除?
categories,?link2cat和?post2cat表. - 删除?options table中的6个字段. (
option_can_override,?option_type,?option_width,?option_height,?option_description, and?option_admin_level) - 添加新状态?
'pending'到posts table的post_status字段. - 参见:?WordPress Taxonomy
- 2.1?:
- 删除
linkcategories表. 链接分类数据合并到categories表, 重设IDs. - 添加
post_type字段到posts table?(in 2.0.x,?post_status?=?'static'?for?Pages) - 添加新状态?
'future'?posts table的?post_status字段 , 代替2.0.x版本中的?NOW(). - 参见:?Migrating Plugins and Themes to 2.1 - Core WordPress Database Changes
?http://codex.wordpress.org/zh-cn:%E6%95%B0%E6%8D%AE%E5%BA%93%E6%8F%8F%E8%BF%B0#Table:_wp_comments
- 删除
- 添加?terms,?term_taxonomy?and?term_relationships?表. 删除?
- comments table:?
- 所有?
- term table?: 修改?
- comments table?: 修改?
- 2.8?:
- 2.9?:
- comments table: 增加
- 3.0?:
- A look inside the WordPress database?一篇Leonid Mamchenkov 的关于数据库表的深入探讨.
- 管理?>?用户
- 管理?>?用户wp_users用户列表存在于wp_users表.