How to solve the problem of WordPress database connection configuration

Source: Internet
Author: User
Tags mysql host install wordpress wordpress database
Solution for WordPress database connection configuration PHPcode ** MySQL settings-specific information from the host you are using * WordPress database name * define (DB_NAME, MYSQL_DB ); define (DB_NAME, wp); ** MySQL database username * define (DB_USE 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 ');

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.