duanliexi1052 2017-07-06 13:42
浏览 56

在WordPress安装中建立数据库连接时出错

I am working with a managed server from 1&1 and I am trying to manually install WordPress with no luck. I went and downloaded the WP core files, uploaded them via FTP and then went into mySQL and created the database and username/password etc. and assigned the privileges. When I try to install wordpress via "www.example.com/wp-admin/install.php", I continuously receive the error:

Error establishing a database connection

I tried everything and triple checked my user,password, etc.

Here is my credentials (Password is hidden):

enter image description here

enter image description here

  • 写回答

2条回答 默认 最新

  • duande1146 2017-07-06 13:48
    关注
    // ** MySQL settings ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'yourdb');
    
    /** MySQL database username */
    define('DB_USER', 'yourdb user');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'yourpassword');
    
    /** MySQL hostname */
    define('DB_HOST', 'hostname');
    

    Host name is always a localhost. for check your database credential is correct or not please feel a wrong value @ let me know I am here

    评论

报告相同问题?