简体   繁体   中英

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

I have installed wordpress in a subdirectory. 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); in wp-config.php, then it works but the network doesn't read as being set up. What is it about this line that breaks my database connection?

The problem was actually that the following line was missing: define('MULTISITE', true); File this one under operator error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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