MyBB Community Forums

Full Version: Localhost problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could not connect to the database server at 'localhost' with the supplied username and password. Are you sure the hostname and user details are correct?

What else can I use besides with localhost
Are you sure your using the right username/password for your local SQL? I highly doubt you would have something other than localhost as the database host.
You use localhost only if the database and the webserver are on the same server. If they are not you then have to use the ip address of the database server.

If you're getting the above error with the db and webserver both being on the same machine then make sure that you don't have any firewall blocking connections. You could try 127.0.0.1 instead of localhost. Also make sure username and password are correct
Whoops, I interpreted that the wrong way. Yes, the hostname can be something other than localhost. Ask your host if you are having problems Smile
the servername such as:

mysql9876.yourhost.org

often found in your Cpanel web options