About the solution of database connection in WordPress

Source: Internet
Author: User
Tags mysql host install wordpress wordpress database
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 ');
  • 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.