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条)

报告相同问题?

悬赏问题

  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常
  • ¥15 关于风控系统,如何去选择