Wordpress在尝试修复我的数据库时给出了以下错误。
为什么要查找包含 1 的表格?我的数据库中没有?
我正在做多站点。
wp_1_posts: Table 'school.wp_1_posts' doesn't exist
wp_1_comments: Table 'school.wp_1_comments' doesn't exist
wp_1_links: Table 'school.wp_1_links' doesn't exist
wp_1_options: Table 'school.wp_1_options' doesn't exist
wp_1_postmeta: Table 'school.wp_1_postmeta' doesn't exist
wp_1_terms: Table 'school.wp_1_terms' doesn't exist
wp_1_term_taxonomy: Table 'school.wp_1_term_taxonomy' doesn't exist
wp_1_term_relationships: Table 'school.wp_1_term_relationships' doesn't exist
wp_1_commentmeta: Table 'school.wp_1_commentmeta' doesn't exist
答案 0 :(得分:0)
您是否有机会启用网站?前缀的数字组件通常表示包含多个站点的WP安装的博客ID(意味着您可能在wp-config.php中激活了the multisite option)。
答案 1 :(得分:0)
我今天也有同样的问题。我通过添加
激活了多站点define( 'WP_ALLOW_MULTISITE', true )
然后完成替换.htaccess的步骤并将以下行添加到wp-config.php。
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', 'example.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
我不小心错过了第一线!我添加了它,这解决了问题。 wp-config.php需要包含两行:
define( 'WP_ALLOW_MULTISITE', true )
和
define('MULTISITE', true);
我在底部找到了解决方案:https://wordpress.org/support/topic/wp_1_-tables-not-created-in-new-multisite-install