• I believe I have the MySQL user name and password set up. I keep going over it again and again.

    However, when I try to enter the credentials for the WordPress startup page it always gives me the “Error Establishing a Database Connection” error.

    I have searched the web and asked on forums about this. So far there is no solution.

    Is there another database besides MySQL I can try? Does anyone know what could be wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, since you’re pretty sure that the login details are correct could you verify that you’re entering the correct Host as well? Some hosting providers do not support localhost as an option and they give you a specific address:port when you create your database. Usually you can see that in your hosting administration panel where all your database information are.

    Also on an extra note, if you’re using CPanel usually when you create a user for your database you have to assign the privileges that he has on that database. Make sure you’ve done that step as well and all the privileges are set up correctly.

    Thread Starter chrisfoose

    (@chrisfoose)

    I’m using it locally on my raspberry pi so I just put in ‘localhost’.

    Instead of ‘localhost’ try using ‘127.0.0.1’. Some systems need that instead if they don’t have the routing set up for localhost.

    It is also worth nothing to confirm that the database the WordPress is trying to connect to actually exists and that the db server indeed supports ‘localhost’ or ‘127.0.0.1’.

    Otherwise, as mentioned previously, confirm the db user has full privileges to access the database.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error Establishing a Database Connection’ is closed to new replies.