当前位置: 技术问答>linux和unix
mysql问题,在线等~~急
来源: 互联网 发布时间:2016-01-26
本文导语: 我用的是rh9的系统,mysql5.0.27+httpd2.2.4+php5.2.1。网站搭起来之后,在网页上显示的错误是: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/usr/local/mysql/var/mysql.sock' (13) in /usr/loc...
我用的是rh9的系统,mysql5.0.27+httpd2.2.4+php5.2.1。网站搭起来之后,在网页上显示的错误是:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/usr/local/mysql/var/mysql.sock' (13) in /usr/local/apache/htdocs/include/inc.php on line 3
在Mysql的错误日志里面显示的错误提示是:
Version: '5.0.27-log' socket: '/usr/local/mysql/var/mysql.sock' port: 3306 Source distribution
请问我现在该怎么办?
谢谢各位!!!
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/usr/local/mysql/var/mysql.sock' (13) in /usr/local/apache/htdocs/include/inc.php on line 3
在Mysql的错误日志里面显示的错误提示是:
Version: '5.0.27-log' socket: '/usr/local/mysql/var/mysql.sock' port: 3306 Source distribution
请问我现在该怎么办?
谢谢各位!!!
|
用netstat查看,是否有发现系统有大量的CLOSE_WAIT信息
如果有
解决:
在my.cnf里加上
[mysqld]
skip-name-resolve
如果有
解决:
在my.cnf里加上
[mysqld]
skip-name-resolve