dongwang6837 2016-08-09 08:28
浏览 102
已采纳

更改密码后,phpMyAdmin访问被拒绝,config.inc.php只能读取

I am using Linux Mint 17.3. I started using XAMPP but had error 2002. That is why I changed my root's password in phpMyAdmin. After that, I couldn't access phpMyAdmin. I got this message:

phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server

I searched for a solution and found that I have to edit my config.inc.php file in the phpMyAdmin folder. The problem is that I can only read the file, but not edit it. How am I supposed to make this file editable?

  • 写回答

1条回答 默认 最新

  • dqm4977 2016-08-09 08:31
    关注

    The solution is simple. You need to change permission of the file. Start the terminal (You can use Ctrl + Alt + T) and use the following commands:

    cd <directory of your config file>
    sudo chmod 644 config.inc.php
    

    The file should be editable for you to make changes.

    Make sure you restart XAMPP server after saving the changes to the file.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 为什么eprime输出的数据会有缺失?
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题