Support » Localhost Installs » Error establishing on database connection (localhost-Xampp-windows))

  • Hi,

    I am using windows 11 and xampp.The port for MySQL in xampp is 3307(not default port).

    When I tried to install WordPress it returns error “Error establishing on database connection”.
    phpMyAdmin works fine. I can create database and tables using phpMyAdmin.

    On installing worpress I got the error like below

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or that contact with the database server at 127.0.0.1 could not be established. This could mean your host’s database server is down.

    Tried the database host in different ways like localhost, localhost:3307, 127.0.0.1, 127.0.0.1:3307

    Updated the host on xampp/phpmyadmin config.inc . Also updated the port on xampp/php/php.ini file and xampp/Mysql/bin/my.ini file.

    Anyone can help me to install the WordPress using xampp with MySQL port 3306?

    • This topic was modified 1 month, 1 week ago by James Huff. Reason: moved to Localhost Installs as this is a localhost install
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.