• I’m getting the “Error establishing a database connection” error when trying to install wordpress locally.

    I set up the database using PHPMyAdmin with the following values:

    Database : WordPress
    Username : boss
    Password : b0ssy
    Host : localhost

    I gave the privileges for the user all global privileges.

    Yet it keeps telling me it cant connect. I am using MAMP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Please don’t ever post your credentials!

    Is your database actually called “WordPress” with a capital W and P? And if you are just developing/designing locally you can actually use a database called “test”. It is a built in MySQL database for development purposes (as per MySQL docs), use the user ‘root’ and leave the password blank.

    When you move to a live site you will need to harden your credentials but we will cross that bridge when you get there ??

    okay just check your database connections properly .
    Ensure that if you use case sensitive characters whike creation of database and its users with (credentials). Once you check that and correct it if needed you are done !

    This is most likely an issue in your wp-config.php file

    Edit your wp-config.php file with any text editor of your choice. (atom.io is a good free editor) and ensure your database connections are setup correctly there.

    Please note that it is case sensitive like Keith mentioned ??

    Also ensure your mySQL is running correctly on your local environment.

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