简体   繁体   English

安装WordPress多站点网络时如何防止建立数据库连接时出错?

[英]How can I prevent an Error Establishing Database Connection when installing WordPress Multisite Network?

I have installed wordpress in a subdirectory. 我已经在子目录中安装了wordpress。 After I run the setup I get an Error Establishing Connection to Database when attempting to access my site. 运行安装程序后,尝试访问我的站点时出现错误,显示与数据库建立连接。 If I comment out the line define('SUBDOMAIN_INSTALL', false); 如果我注释掉行define('SUBDOMAIN_INSTALL',false); in wp-config.php, then it works but the network doesn't read as being set up. 在wp-config.php中,它可以工作,但是网络不被视为已建立。 What is it about this line that breaks my database connection? 这行中断我的数据库连接是什么?

The problem was actually that the following line was missing: define('MULTISITE', true); 问题实际上是缺少以下行:define('MULTISITE',true); File this one under operator error. 将此文件归档在操作员错误下。

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

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