Wordpress Multisite “Error establishing a database connection” in localhost

后端 未结 11 1397
北荒
北荒 2020-12-24 14:04

When attempting to convert WordPress to a Multisite setup, I get the error:

Error establishing a database connection

I\'m using

11条回答
  •  遥遥无期
    2020-12-24 14:34

    If you're running WHM/cPanel and you've already checked that you've added the MULTISITE/WP_ALLOW_MULTISITE constant, you're probably running into virtual host issues.

    If you're getting the database error, chances are, your name servers or A record is correct. Otherwise your domain wouldn't be pointing to your server with a database connection. But, you've probably forgotten, or missed, the domain name from the cPanel aliases.

    Just head to cPanel, search for 'Aliases' and type in the domain name you're missing under 'Create a New Alias'.

    You can also get to cPanel by logging into WHM, searching for 'List Accounts', searching for the account you want and clicking on the CP icon.

提交回复
热议问题