• Hi, I’m now trying to install wordpress as part of an school assignment. I have uploaded the wordpress folder to a server hosted by my school. I had to make my own database and then connect to wordpress using the information from the database. I made the database in MySQL, and followed every step of the instructions, yet it can’t seem to connect to the database.

    Some of my teachers think the problem might be the fact that the host of my database is ‘localhost’ and then when wordpress is trying to find it, it instead finds the localhost of the server it is located on.

    I really don’t understand how to solve this, and hope someone might have some insight as to what’s wrong.

    Any help is appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You will need to check your database details with your server admins.

    Thread Starter ndreaas

    (@ndreaas)

    The database is not hosted on the server. It is hosted locally on my mac.

    [Moved to Localhost Installs]

    Have you checked the documentation for your server? Is MySql running?

    If you want to host your WordPress on the school’s server you need to have MySQL installed on it and NOT locally on your system.

    I guess the error is due to incorrect database credentials. Local installations like MAMP and WAMP have a blank MySQL password. Ask your server admin for a MySQL username/password combination.

    You must also create a database before you begin installation.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error establishing a database connection’ is closed to new replies.