Hello i have mysql 5.5 and phpmyadmin is giving me this error #2002 error. I am running php PHP 5.3.13 with
I have checked by uploading test script on the server and it execute and shows the result correctly. Only thing is that it does not connect on localhost but works on 127.0.0.1.
I have added updated phpmyadmin config file with the same.
checks
ls -la /var/lib/mysql/mysql.sock
ps ax | grep mysql
netstat -lnp | grep mysql
my.cnf
Status from mysql command line
/etc/hosts
If you need more info and can dig that out to. Thanks for your time and effort.
mysqld Ver 5.5.25-log for Linux on x86_64 (MySQL Community Server (GPL))
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
I have checked by uploading test script on the server and it execute and shows the result correctly. Only thing is that it does not connect on localhost but works on 127.0.0.1.
I have added updated phpmyadmin config file with the same.
checks
ls -la /var/lib/mysql/mysql.sock
srwxrwxrwx 1 mysql mysql 0 Jun 5 13:28 /var/lib/mysql/mysql.sock
ps ax | grep mysql
12414 pts/0 S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/mysql/host.domain.com.pid
12492 pts/0 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/matrix2.matrixorbital.com.err --pid-file=/var/lib/mysql/host.domain.com
29536 pts/0 S+ 0:00 grep mysql
netstat -lnp | grep mysql
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 12492/mysqld
unix 2 [ ACC ] STREAM LISTENING 30655 12492/mysqld /var/lib/mysql/mysql.sock
my.cnf
[client]
#password = your_password
port = 3306
socket = /var/lib/mysql/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8
#skip-networking
log-bin=mysql-bin
# binary logging format - mixed recommended
binlog_format=mixed
server-id = 1
#server-id = 2
#master-host = <hostname>
#master-user = <username>
#master-password = <password>
#master-port = <port>
#log-bin=mysql-bin
#innodb_data_home_dir = /var/lib/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /var/lib/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 256M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 64M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
Status from mysql command line
mysql> status
--------------
mysql Ver 14.14 Distrib 5.5.25, for Linux (x86_64) using readline 5.1
Connection id: 9
Current database:
Current user: da_admin@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.5.25 MySQL Community Server (GPL)
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: utf8
Conn. characterset: utf8
UNIX socket: /var/lib/mysql/mysql.sock
Uptime: 1 hour 7 min 48 sec
Threads: 1 Questions: 25 Slow queries: 0 Opens: 33 Flush tables: 1 Open tables: 26 Queries per second avg: 0.006
--------------
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
2XX.XXX.XX.XXX host.domain.com
If you need more info and can dig that out to. Thanks for your time and effort.