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 ');