About the solution of database connection configuration in WordPress
* * MySQL Settings-specific information from the host you are using * *//
/** Name of WordPress database */
Define (' Db_name ', mysql_db);
Define (' db_name ', ' WP ');
/** MySQL Database User name */
Define (' Db_user ', mysql_user);
Define (' Db_user ', ' root ');
/** MySQL Database Password */
Define (' Db_password ', mysql_pass);
/** MySQL Host */
Define (' Db_host ', HOST);
/** The default text encoding when creating data tables */
Define (' Db_charset ', ' UTF8 ');
Read some of the configuration instructions on the Web, is to directly specify the string such as:
Define (' Db_user ', ' root ');
I now install this wordpress is a installed, now to migrate to their own machine, how to configure
Add a sentence I am not familiar with PHP, install WordPress just want to experience, look at the above situation seems to be on the database, user, password, host
Define the variable, how to find, and make changes, please expert advice, thank you!!!
------Solution--------------------
You are in define (' Db_password ', mysql_pass);
Before adding two sentences:
echo Mysql_pass;
Exit
Then run and if there is no output then you put
Define (' Db_password ', mysql_pass);
Change into
Define (' Db_password ', ' Here is your password, note in single quotation marks ');
Other Settings Ibid.
------Solution--------------------
You can change it directly.
Define (' Db_password ', ' Here is your password, note in single quotation marks ');