ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Can't login to my EE Control Panel after changing non-EE hosting password.

February 19, 2010 1:19pm

Subscribe [3]
  • #1 / Feb 19, 2010 1:19pm

    nancyb

    14 posts

    This is the error message I get when I try to login: “Database Error: Unable to connect to your database. Your database appears to be turned off or the database connection settings in your config file are not correct. Please contact your hosting provider if the problem persists.” I have no trouble logging in to my hosted files and database.
    I’d appreciate some help,
    Nancy

  • #2 / Feb 19, 2010 1:23pm

    lebisol

    2234 posts

    Make sure that you update the config.php file located in “/system/config.php”
    You will be looking for a lines:

    ...
    $conf['db_hostname'] = "localhost";
    $conf['db_username'] = "abcd";
    $conf['db_password'] = "*****";
    ...
  • #3 / Feb 19, 2010 1:35pm

    nancyb

    14 posts

    It’s the host login password I changed not the database password though.

  • #4 / Feb 19, 2010 1:39pm

    lebisol

    2234 posts

    Well…did you happen to use the same user/pass for EE database? There should not be any other connection between the two.Can you browse the database (open tables etc.) to make sure mysql server is running?

  • #5 / Feb 19, 2010 1:53pm

    nancyb

    14 posts

    Yes, I can access MySQL database.
    I thought when I was defining my “localhost” setting in EE I put in my hosting username and password and then the MySQL username and password, which is different, as a separate setting. My Config file on my hosting server has the correct MySQL username and password.
    I should have mentioned that I have been into my files on my hosting server to clean them up after what I believe was a PHP injection attack. I’ve removed the injected script from those files, but this issue might be related…?

  • #6 / Feb 19, 2010 2:00pm

    lebisol

    2234 posts

    Yes, I can access MySQL database.
    I thought when I was defining my “localhost” setting in EE I put in my hosting username and password and then the MySQL username and password, which is different, as a separate setting.

    which you changed 😊
    Your hosting account/login has nothing to do with EE unless you made it so they match.
    All EE needs is your MySQL username and password and generally in EE setup the server should remain as “localhost”. You can always create a new mysql user/pass and assign rights to the database and then change the settings as in the post above.

  • #7 / Feb 19, 2010 2:06pm

    nancyb

    14 posts

    Ok, will try that then, thanks.
    Also, while I have you, another related question: When I was cleaning my files I remove one called phpinfo.php. I didn’t recognize it as one of my EE files, was that correct or have I deleted a neccessary file by mistake?

    Thanks.

  • #8 / Feb 19, 2010 2:08pm

    Sue Crocker

    26054 posts

    Thanks for the assist, lebisol.

    Nancy, does lebisol’s advice help? He’s correct, changing your domain passwords matters not, it’s the MySQL passwords that are the issue here.

  • #9 / Feb 19, 2010 2:13pm

    nancyb

    14 posts

    Yes, thanks.
    Can you tell me if I was correct to deleted the “phpinfo.php” file during my cleanup though?

  • #10 / Feb 19, 2010 2:42pm

    Sue Crocker

    26054 posts

    Sure, you can delete it. 😊 Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases