I'm using mysql server through tcp/ip with no problem. But I don't know since when I'm not able to connect through socket. There are lots of topics but my bad I couldn't find one works for me.
OS: Ubuntu 9.04
mysql 5.0.75-0ubuntu10.5
my.cnf
Quote:
[mysqld]
user = mysql
socket = /var/run/mysqld/mysqld.sock
skip-name-resolve
safe-show-database
#old_passwords
back_log = 50
skip-innodb
max_connections = 800
key_buffer_size = 1024M
myisam_sort_buffer_size = 128M
join_buffer_size = 3M
read_buffer_size = 3M
sort_buffer_size = 8M
table_cache = 8000
thread_cache_size = 768
wait_timeout = 60
connect_timeout = 10
tmp_table_size = 144M
max_heap_table_size = 144M
max_allowed_packet = 64M
net_buffer_length = 16384
max_connect_errors = 10
thread_concurrency = 16
concurrent_insert = 2
table_lock_wait_timeout = 30
read_rnd_buffer_size = 786432
bulk_insert_buffer_size = 8M
query_cache_limit = 6M
query_cache_size = 288M
query_cache_type = 1
query_prealloc_size = 262144
query_alloc_block_size = 65536
transaction_alloc_block_size = 8192
transaction_prealloc_size = 4096
default-storage-engine = MyISAM
max_write_lock_count = 16
[mysqld_safe]
nice = -10
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 1024M
sort_buffer = 64M
read_buffer = 16M
write_buffer = 16M
!includedir /etc/mysql/conf.d/
|
/var/run/mysqld/mysqld.sock socket exists and has chmod 777
Error:
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket 'localhost' (2)