|
|
不明的错误在于:为什么会出现/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 |
|