About the WordPress database connection configuration solution PHPcode // ** MySQL settings-specific information from the host you are using ** // ** WordPress database name */define ('db _ name ', MYSQL_DB); define ('Db _ name', 'WP '); solutions for WordPress database connection configuration
PHP code
// ** MySQL settings-the 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:
PHP code
Echo MYSQL_PASS; exit;
------ Solution --------------------
You just need to change it.
Define ('Db _ password', 'Here is your PASSWORD. Note that it is enclosed by single quotation marks ');