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

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条