Error establishing database connection (localhost-Xampp-windows)

graceful (sth. or sb) else 22

I am using Windows 11 and xampp. xampp has MySQL on port 3307 (not the default port).

When I try to install WordPress, it returns the error "Error establishing database connection". phpMyAdmin
It's working fine. I can create databases and tables using phpMyAdmin.

I get the following error when installing worpress

Error establishing database connection
This means that the username and password information in your wp-config.php file is incorrect, or that you cannot establish contact with the database server on 127.0.0.1. This may mean that your host's database server is down.
Tried different ways of database hosting such as localhost, localhost:3307, 127.0.0.1, 127.0.0.1:3307

Updated hosts on xampp/phpmyadmin config.inc. Also updated ports on xampp/php/php.ini file and xampp/Mysql/bin/my.ini file.

Can anyone help me install WordPress using xampp with MySQL port 3306?

Comments

Add comment
  • Comment list is empty

Contact Us

020-2206-9892

QQ咨询:1025174874

E-mail: info@361sale.com

Working hours: Monday to Friday, 9:30-18:30, holidays off

Customer Service
In order to facilitate global user registration and login, we have canceled the telephone login function. If you encounter login problems, please contact our customer service for assistance in binding your email address.