The database user name and password that you provided in the wp-config.php file may not be the correct workaround

Source: Internet
Author: User

The database user name and password that you provided in the wp-config.php file may not be the correct workaround

650) this.width=650, "width=", "height=", "title=" this post contains the picture "src=" http://simg.sinajs.cn/blog7style/images/ Common/sg_trans.gif "class=" Sg_icon sg_icon18 "style=" margin:0px 0px 0px 5px;padding:0px;border:0px;list-style:none; Vertical-align:text-bottom;background-image:url ("Http://simg.sinajs.cn/blog7style/images/common/sg_icon.png? 20131218 "); background-position:255px 0;" alt= "Sg_trans.gif"/>(2015-09-18 23:01:40)

Tags: It technology experience WordPress website

Error accessing wp-admin/install.php: Database connection error. The database user name and password that you provided in the wp-config.php file may be incorrect

And then looked at the next Baidu, all said that the database is not connected successfully caused.

So how do you set it? I did not succeed in the whole number of times, and finally it was solved. Below I have set the process of success of my record down, later can use, also can help everybody.

1.In the htdocs in the WordPress root directory (Note that it is possible that this folder you are not named WordPress, it is you in the WordPress official website to download the compressed package extracted from the folder, see how you name the corresponding folder on the OK) to findwp-config-sample.php Copy this file and rename it to wp-config.php


2.Use notepad++ to open the copy.wp-config.php, modify it (listed in the Red Word section):

Define (' db_name ', 'Database_name_here‘);


Define (' Db_user ', 'Username_here‘);


Define (' Db_password ', 'Password_here‘);
---------------------------------------------------------------------------Split Line
database_name_here change to any MySQL database name you want to name

Username_hereMysqlThe default is root, if you have not changed the user name, then change to root OK, changed to fill in the corresponding user name

Password_here directly Delete, leave blank, default no password


3. Open phpmyadmin interface , click Database Menu-New database ( fill in the database name entered in step 2), character encoding select Utf8_general_ci, CREATE database

650) this.width=650; "src=" http://s16.sinaimg.cn/mw690/006com9Hgy6VxkyruR9df&690 "Name=" Image_operate_ 96071442590922537 "height=" 303 "align=" left "width=" 490 "alt=" the database user name and password you provided in the wp-config.php file may not be correct <wbr> workaround " title= "The database user name and password you provided in the wp-config.php file may be incorrect <wbr> workaround" style= "Margin:0px;padding:0px;border:0px;list-style : none; "/>






Now you can open the link experiment, the database name (self-setting), MySQL database user name: Root, password is empty (not filled), the others do not modify, you can


The database user name and password that you provided in the wp-config.php file may not be the correct workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.