LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 593|回复: 1

编译 MYSQL,perl run-all-tests ,ERR

[复制链接]
发表于 2006-2-18 21:55:13 | 显示全部楼层 |阅读模式
不明的错误在于:为什么会出现/var/lib/mysql/mysql.sock


[root@c226 mysql]#  cd sql-bench
[root@c226 sql-bench]#  perl run-all-tests
Got error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)' when connecting to DBI:mysql:database=test;host=localhost with user: '' password: ''
[root@c226 sql-bench]# mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 4.1.18-log

-------------------------------------------------
/etc/my.cnf  如下:
[client]
#password       = your_password
port            = 3306
socket          = /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port            = 3306
socket          = /tmp/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
发表于 2006-2-18 22:33:12 | 显示全部楼层
socket = /tmp/mysql.sock
—》
socket = /var/lib/mysql/mysql.sock
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表