• I have this message when i try to install…i have tried localhost also and the database is opening through the IP… but what i need to do, i dont know… please help.

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at 118.67.248.12. This could mean your host’s database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

Viewing 3 replies - 1 through 3 (of 3 total)
  • That IP goes straight to PhpMyAdmin and there is .htaccess based authentication to get there. I think that may be your problem. PhpMyAdmin is not a database server. It is just a web based front end.

    Maybe you need to include a port number 3306 is MySQL’s default.

    And not many hosts allow remote database connections *(and connecting to the public IP would count as remote) anyway, so that could be an issue as well.

    Try 127.0.0.1 for your DB_HOST value. If that doesn’t work you need to contact your host.

    Thread Starter twitterinfos

    (@twitterinfos)

    Hi,

    Thanks for the reply and ideas… i am trying to fix it through the port idea and I used 118.67.248.12:80. After that if i go to http://twitterinfos.com/wp-admin/install.php it just keep on processing and not error or nothing was happening… it just keep on working and working.

    No. MySQL doesn’t run on port 80. Port 80 is usually an http (web) server. The default port for MySQL is 3306, as I stated earlier, but it doesn’t have to run on that port. It can be configured differently.

    Plus, there is no guarantee that your MySQL server is at the same IP as your web server. Please verify you database address with your host, before we waste too much time.

    And, as I said before, many hosts do not allow remote database connections, and what you are trying to do is connect remotely. Please verify that as well.

    Bascially, talk to your host. Your host has the answers. I am only guessing. If you host won’t help, get a new host.

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

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