[英]Problem moving Wordpress site from one server to another
I moved an existing wordpress site from one server to another.我将现有的 wordpress 站点从一台服务器移动到另一台服务器。
But when I run it shows database connection error.但是当我运行它显示数据库连接错误。
In which file do we specify new database related information in Wordpress?我们在Wordpress中的哪个文件中指定新的数据库相关信息?
Please let me know.请告诉我。
Thanks!谢谢!
Database configuration details are located in wp-config.php
in the root Wordpress directory.数据库配置详细信息位于根 Wordpress 目录中的
wp-config.php
中。
Here is the official how to for doing this.这是官方的如何做到这一点。 You'll need to move the files, the database, and likely you'll have to change the hostname in wp-config.
您需要移动文件、数据库,并且可能必须在 wp-config.xml 中更改主机名。
http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server http://codex.wordpress.org/Moving_WordPress#Moving_WordPress_to_a_New_Server
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.