dongnei3634 2014-07-25 19:39
浏览 117
已采纳

由于Configurations.PHP文件导致数据库错误无法访问网站

I have a Joomla website that I am hosting with GoDaddy. I changed the phpMyAdmin password and now I receive the following error when I try to load my website:

Database Error: Unable to connect to the database:Could not connect to MySQL

I'm freaking out right now because I don't want to get my boss mad.

After some frantic googling I came across this:

http://docs.joomla.org/Unable_to_connect_to_the_database

Apparently I have to change my configuration.php file in phpMyAdmin; however, I have no idea how to access it despite all my research.

enter image description here

  • 写回答

2条回答 默认 最新

  • dongshuo1856 2014-07-25 21:37
    关注

    In the root of your Joomla website there's a file titled configuration.php

    If you know how to SFTP to your site, open this file with a text editor. Alternatively use your GoDaddy control panel, find the file manager and open this same configuration.php file.

    Look for the line:
    public $password = 'your_old_password';

    Change the password (between the single quotes) and save your updates.

    All should be good after that.

    Good luck!

    or PLAN B
    Change your phpMyAdmin password back to what it was initially and then there's no need to touch the configuration.php file ;)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?