WordPress.org

Ready to get started?Download WordPress

Forums

localhost and DB (2 posts)

  1. adavis3105
    Member
    Posted 5 years ago #

    Hi,

    I am trying to install wordpress locally on my macbook. I have installed MAMP for the Apache, My SQl, PHP and it seems to be working fine as I was able to view the WP readme file locally. When I try to run the install.php from the readme page, I get "Error establishing a database connection" message.

    here are the settings I used in wp-config

    define('DB_NAME', 'adavis'); // The name of the database
    define('DB_USER', 'root@localhost'); // Your MySQL username
    define('DB_PASSWORD', 'xxxxxx'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    not sure what I am missing here??

    Thanks,

    AD

  2. moshu
    Member
    Posted 5 years ago #

    In my XAMPP (which is the cousin of MAMP, I guess) the user is "root"; that's it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.