Solutions for WordPress database connection configuration

Source: Internet
Author: User
Tags install wordpress wordpress database
Solutions for WordPress database connection configuration // & nbsp; ** & nbsp; MySQL & nbsp; settings & nbsp;-& nbsp; the details are from the host you are using & nbsp; ** & nbsp; // ** & nbsp; WordPress & nbsp; database name & nbsp; */solutions for WordPress database connection configuration

// ** MySQL settings-specific information comes from the host you are using **//
/** WordPress database name */
Define ('Db _ name', MYSQL_DB );
Define ('Db _ name', 'WP ');

/** MySQL database username */
Define ('Db _ user', MYSQL_USER );
Define ('Db _ user', 'root ');

/** MySQL database password */
Define ('Db _ password', MYSQL_PASS );

/** MySQL host */
Define ('Db _ host', HOST );

/** Default text encoding when creating a data table */
Define ('Db _ charset', 'utf8 ');


After reading some configuration instructions on the Internet, you can directly specify a string, for example:
Define ('Db _ user', 'root ');


The WordPress I have installed is installed. how do I configure it to migrate it to my own machine?
I am not familiar with PHP. I just want to install WordPress to try it out. it seems that I am familiar with databases, users, passwords, and hosts.
I have defined variables, searched for them, and made changes. thank you !!!







------ Solution --------------------
In define ('Db _ password', MYSQL_PASS );
Add the following two sentences:

echo  MYSQL_PASS;
exit;

Run the command again. if there is no output

define('DB_PASSWORD', MYSQL_PASS);

Change

Define ('Db _ password', 'Here is your PASSWORD. Note that it is enclosed by single quotation marks ');


Other settings are the same as above.
------ Solution --------------------
You just need to change it.
Define ('Db _ password', 'Here is your PASSWORD. Note that it is enclosed by single quotation marks ');

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.