Support » Localhost Installs » Error establishing a database connection on XAMPP

  • solidcodes

    (@solidcodes)


    Hello guys,

    I downloaded the latest version of XAMPP
    and Bitnami WordPress
    After installing XAMPP and WordPress.
    When I type this url to my chrome browser localhost/wordpress/
    I got this error below.
    “Error establishing a database connection”

    The wp-config.php contains these settings below.

    `

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter solidcodes

    (@solidcodes)

    The wp-config.php codes are below

    // ** Database settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', 'bitnami_wordpress');
    
    /** Database username */
    #define( 'DB_USER', 'bn_wordpress' );
    define('DB_USER', 'root');
    
    /** Database password */
    #define( 'DB_PASSWORD', 'redacted for privacy by moderator' );
    define('DB_PASSWORD', '');
    
    /** Database hostname */
    #define('DB_HOST', '127.0.0.1:3306');
    
    define('DB_HOST', 'localhost:3306');
    
    • This reply was modified 11 months ago by Yui.
    • This reply was modified 11 months ago by Yui.

    Hello @solidcodes Have you had any luck fixing this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error establishing a database connection on XAMPP’ is closed to new replies.