phpMyAdmin 尝试连接到 MySQL 服务器

 时间:2026-02-14 03:01:46

1、错误截图

phpMyAdmin 尝试连接到 MySQL 服务器

2、修改方法

phpMyAdmin 尝试连接到 MySQL 服务器

3、成功修改

phpMyAdmin 尝试连接到 MySQL 服务器

4、步骤说明

 需要修改phpmyadmin的配置文件,让其连接到MySQL数据库,用记事本打开 config.inc.php 文件,查找下面几个部分并修改$cfg['Servers'][$i]['host'] = 'localhost';$cfg['Servers'][$i]['port'] = '3306';$cfg['Servers'][$i]['user'] = '这里填写用户名';$cfg['Servers'][$i]['password'] = '这里填写你的MySQL密码';$cfg['Servers'][$i]['AllowNoPassword'] = true;保存 config.inc.php 后,重启服务器即可访问 phpmyadmin 了。 

5、注意事项:

今后不要随便修改用户名密码

phpMyAdmin 尝试连接到 MySQL 服务器

6、也可以进入安装路径修改配置文件

  • Python安装发生严重错误如何卸载
  • Visual Studio 怎么改变背景颜色?
  • list index out of range错误解决方法
  • 如何在MySQL中利用数据库表创建视图
  • 怎么用visualstudio
  • 热门搜索
    gs是什么意思 郁郁寡欢的意思是什么 身份证号码的数字代表什么 五脏六腑的意思 统筹是什么意思 atm是什么意思 退回妥投是什么意思 燃油宝什么牌子好 孕妇多吃什么水果好 潺潺的意思