Build xampp and wordpress and build xamppwordpress

Source: Internet
Author: User
Tags wordpress database

Build xampp and wordpress and build xamppwordpress

Xampp and wordpress encountered two problems.

Problem 1: select is not available)wordpressDatabase

Solution: Enter http: // localhost: 8081/phpmyadmin to check which databases are available and modify them. (Note: Here, 8081 is because I set the Apache port to 8081, generally, you do not need to add a port number if you have not set it)


Problem 2: An error occurred while accessing wp-admin/install. php: database connection error. The database username and password you provide in the wp-config.php file may be incorrect

Solution:

Modify the wp-config.php, the original content is:

?
123456789 // ** MySQL settings-specific information comes from the host you are using **///** WordPress database name */define('DB_NAME''database_name_here'); /** MySQL database username */define('DB_USER''username_here'); /** MySQL Database Password */define('DB_PASSWORD''password_here');

After modification:

?
123456789 // ** MySQL settings-specific information comes from the host you are using **///** WordPress database name */define('DB_NAME''wordpress'); /** MySQL database username */define('DB_USER''root'); /** MySQL Database Password */define('DB_PASSWORD''');

Where:

  • DB_NAME is the name of the database in MySQL. Here is the newly created database wordpress.
  • DB_USER: Specifies the database user name. The default value is root in wamp.
  • DB_PASSWORD. Database Password, Which is null by default here (wamp). I have not modified it yet

Reference http://www.crifan.com/during_install_wordpress_access_wp_admin_install_php_error_database_connection_error_your_database_name_and_password_may_not_correct_provided_in_wp_config_php/


Http://www.crifan.com/use_phpmyadmin_to_create_new_mysql_database_for_wordpress/


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.