phpmyadmin 错误 #2002 Cannot log in to the MySQL server
来源:互联网 发布:万堂书院 淘宝大学 编辑:程序博客网 时间:2024/06/08 00:57
因为在 /etc/my.cnf 里关闭了tcp方式,但是没有改 phpmyadmin 的 config.inc.php 文件里面
$cfg['Servers'][$i]['connect_type'] = 'socket';
并确认/tmp下是否存在mysqld.sock文件,如果不存在,找到文件的存在位置创建软连接
或者
出现这个错误,表示没有连接到数据库。修改config.inc.php文件,
将$cfg['Servers'][$i]['host'] = 'localhost';
改为$cfg['Servers'][$i]['host'] = '127.0.0.1';
改为$cfg['Servers'][$i]['host'] = '127.0.0.1';
from:http://blog.csdn.net/gold2008/article/details/8596343
0 0
- phpmyadmin 错误 #2002 Cannot log in to the MySQL server
- phpmyadmin 错误 #2002 Cannot log in to the MySQL server
- 用web 打开phpMyAdmin时出现错误#2002 Cannot log in to the MySQL server
- phpmyadmin "Cannot log in to the MySQL server" PMA版本4.4.15.5 httpd2.4
- phpmyadmin error #2002 cannot login to the mysql server
- php出现[#2002 Cannot log in to the MySQL server]解决方法
- Log to Server in Laszlo
- The transaction log for database 'NJ_Address' is full. To find out why space in the log cannot be
- Mysql 出现错误The server is not configured as slave; fix in config file or with CHANGE MASTER TO
- 解决You have an error in your SQL syntax; check the manual that corresponds to your MySQL server错误
- [MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- [MySQL复制异常]Cannot execute statement: impossible to write to binary log since statement is in row for
- sql server 2008 R2 Error 9003:The log scan number passed to log scan in database is not valid
- Server Error in '/' Application. Cannot use a leading .. to exit above the top directory
- [IOS] 错误:Cannot assign to 'self' outside of a method in the init family
- 子类中初始化错误Cannot assign to ’self’ outside of a method in the init family
- VMware View client连接错误:A secure connection to the server '(null)' cannot be established
- MySQL check the manual that corresponds to your MySQL server version for the right syntax错误
- 【TCP】半关闭(shutdown)
- 【概率论】1.2事件的运算、条件概率和独立性
- Fragment学习之Activity传递数据到Fragment
- 有一个班,三个学生,各学四门课,计算总平均分数以及第n个学生的成绩
- percona之复制工具介绍
- phpmyadmin 错误 #2002 Cannot log in to the MySQL server
- Windows事件驱动机制及消息循环
- 设定Grid行或列的尺寸
- 猜年龄
- git入门学习
- python3.4 安装pydelicious 错误解决
- LLDB篇一,让lldb提升你的效率
- POJ 2502 Subway (Dijkstra 最短路+建图)
- JSON--List集合转换成JSON对象