• Here’e the error message I’m getting (I’ve changed the numbers in the server name for privacy reasons):

    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 p52mysql34.secureserver.net. This could mean your host’s database server is down.

    I’ve checked and re-checked my config file, and my username and password are correct. The problem appears to be that WordPress is pointing to a different host than the one I have in my config file.

    In my config file and on my hosting account, the server is named:

    p52mysql6.secureserver.net

    In the error message, the server is named:

    p52mysql34.secureserver.net

    Note that the numbers after “mysql” are different.

    How do I fix this?

    Thanks.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Looks like your MySQL database is hosted elsewhere and not on the box your files are one. I’d try using the other URL and see if that works.

    That certainly looks like a GoDaddy account. When you are in the Hosting Control for MySQL databases and click on your database name, what server does it show for your database? And can you get into phpMyAdmin (click on Open Manager) for that database?

    Thread Starter gtaggart

    (@gtaggart)

    Per drmike’s suggestion, I changed the numbers in my config file to the ones in the error message and uploaded them. Tried my URL again and got the same error message. Thanks, but apparently that isn’t the answer.

    Thread Starter gtaggart

    (@gtaggart)

    Yup, it’s Godaddy. The server address in the account is the same as in my config-file. It is not the one in the error message.

    I can get into the phpMyAdmin for the database.

    What do you suggest I do?

    thanks.

    When you say config-file you mean your wp-config.php file, correct?

    Your wp-config.php file should be at the same directory level as your wp-admin, wp-content, and wp-includes, folders.

    Thread Starter gtaggart

    (@gtaggart)

    Michael, yes, I mean my wp-config.php.

    What do you mean when you say that my “wp-config.php file should be at the same directory level as your wp-admin, wp-content, and wp-includes, folders”? And where (server, hard drive, etc.) should they be at the same level.

    I’m looking at the my Word Press files on Filezilla, and wp-admin, wp-content, and wp-includes are actual manilla icon folders. wp-config, on the other hand, is a single file and is not represented by a manilla folder icons.

    However, all of these folders/files show up at the same time on the server side of Filezilla, following the “remote site” address; for example, /wordpress/wp-config.php or /wordpress/wp-admin. I’m guessing that’s what you mean by being at the “same directory level.”

    Thanks for your help.

    The only thing I can think is that you actually have two copies of WordPress and that the copy you are accessing via your browser is not the same as the wordpress folder with the wp-config.php you mention.

    goldenhop

    (@goldenhop)

    I have facing the same problem too using mysql database version 5.0 in godaddy.com.

    I am wondering godaddy.com does not support the manual upload and installation.

    Can somebody help and advise?

    Thanks.

    I am having the same problem on GoDaddy, trying to install WordPress for a client. I wrote a simple connection program using the same server, databasename and user/password defined names and put it in the same folder as install.php – it connects with no problems when I copy the define statements from wp-config.php into it; however, the same error occurs if I try to include wp-config.php in my program.

    My problem turned out to be an error on my part. The DB_USER and DB_NAME should be the same. Once I noticed my mistake, the install went fine.

    Ok well I can now say that I am getting the same error. I don’t know what happened because everything was fine and the site was up and then i hit refresh and then i got that error. Any ideas where to begin? My site is https://www.endurelife.com which I can’t access, but I can access pics on the server like https://endurelife.com/1.jpg. I am assuming that means the server isn’t down, but I don’t know. Anyone have ideas? I have checked the wp-config and the info is correct.

    Thanks a ton.
    Dustin

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