简体   繁体   English

将新的wordpress安装连接到现有数据库时出现问题

[英]Issue connecting new wordpress install to pre-existing database

I've recently run into a situation helping another individual who overwrote their site folder when installing a new copy of Wordpress. 最近,我遇到了一种情况,正在帮助另一个在安装新的Wordpress副本时覆盖其站点文件夹的个人。 The original wordpress database is still intact and when attempting to update the connection string in the wp-config.php file it does connect to the old database but just brings me to the setup page (/wp-admin/install.php). 原始的wordpress数据库仍然是完整的,当尝试更新wp-config.php文件中的连接字符串时,它确实连接到旧数据库,但只是使我进入了设置页面(/wp-admin/install.php)。 It doesnt appear to be recognizing any of the database tables that already exist. 它似乎无法识别任何已经存在的数据库表。 Is there a solution to get around this? 有解决这个问题的解决方案吗?

确保wp-config.php文件中的$table_prefix与数据库表的实际前缀匹配。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM