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

  • 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 1 replies (of 1 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 3 weeks, 6 days ago by Yui.
    • This reply was modified 3 weeks, 6 days ago by Yui.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.