Build xampp and wordpress and build xamppwordpress
Xampp and wordpress encountered two problems.
Problem 1: select is not available)wordpress
Database
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/