socket=/tmp/mysql.sock
socket=/tmp/mysql.sock
/usr/local/directadmin/conf/mysql.conf
Add this line
in
When you add this line it will create mysql.sock in your tmp dir.
# /etc/init.d/mysqld restart
This solution works.
It's not really a solution to restart a server. But maybe you can do it?
But the set of permissions to 777 for the tmp folder first and restart MySQL
Did MySQL work before? If so, what has changed on your server?
What OS are you running there?
Check this thread: http://www.directadmin.com/forum/showthread.php?t=39128
110219 20:16:02 InnoDB: Starting shutdown...
110219 20:16:07 InnoDB: Shutdown completed; log sequence number 0 43655
110219 20:16:07 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
110219 20:16:07 mysqld_safe mysqld from pid file /usr/local/mysql/data/server.pid ended
110219 20:16:11 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
110219 20:16:11 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110219 20:16:11 [Warning] '--log_slow_queries' is deprecated and will be removed in a future release. Please use ''--slow_query_log'/'--slow_query_log_file'' instead.
110219 20:16:11 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
110219 20:16:11 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
110219 20:16:11 [Warning] '--log_slow_queries' is deprecated and will be removed in a future release. Please use ''--slow_query_log'/'--slow_query_log_file'' instead.
110219 20:16:11 [Warning] '--default-character-set' is deprecated and will be removed in a future release. Please use '--character-set-server' instead.
110219 20:16:11 [Note] Plugin 'FEDERATED' is disabled.
110219 20:16:11 InnoDB: Initializing buffer pool, size = 512.0M
110219 20:16:12 InnoDB: Completed initialization of buffer pool
110219 20:16:12 InnoDB: Started; log sequence number 0 43655
110219 20:16:12 [ERROR] /usr/local/mysql/bin/mysqld: unknown option '--skip-bdb'
110219 20:16:12 [ERROR] Aborting
110219 20:16:12 InnoDB: Starting shutdown...
110219 20:16:17 InnoDB: Shutdown completed; log sequence number 0 43655
110219 20:16:17 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
110219 20:16:17 mysqld_safe mysqld from pid file /usr/local/mysql/data/server.pid ended
aptitude purge mysql-server
aptitude purge mysql-server-5.0
aptitude purge mysql-server-5.1
cd /usr/local/directadmin/custombuild
./build update && ./build clean
./build set_fastest
./build set mysql_inst yes
./build set mysql_backup yes
./build mysql
server:/usr/local/directadmin/custombuild# ./build mysql
Dumping database admin_desiboard
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Dumping database admin_desibyte
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Dumping database admin_mb
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Dumping database da_roundcube
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Dumping database mysql
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Dumping database test
mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Stopping mysqld ...
Stopping mysqld: [ FAILED ]
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
chown: invalid user: `mysql:mysql'
Starting mysqld: [ OK ]
Giving mysqld a few seconds to start up...
chown: invalid user: `mysql'
Looking for 'mysql' as: /usr/local/mysql/bin/mysql
Looking for 'mysqlcheck' as: /usr/local/mysql/bin/mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/run/mysqld/mysqld.sock' '--port=3306' '--socket=/var/run/mysqld/mysqld.sock'
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed
/usr/local/mysql/bin/mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) when trying to connect
Restarting MySQL.
Stopping mysqld: [ FAILED ]
Starting mysqld: [ OK ]
It is recommended to do "./build php n" after MySQL update.
server:/usr/local/directadmin/custombuild# chown: invalid user: `mysql'
Correct your /etc/my.cnf to get rid of errors mentioned in your post#12 http://www.directadmin.com/forum/showpost.php?p=197339&postcount=12
mv /etc/my.cnf /etc/my.cnf-bak
touch /etc/my.cnf
Will this help, try to use empty /etc/my.cnf:
Code:mv /etc/my.cnf /etc/my.cnf-bak touch /etc/my.cnf
and re-start mysqld.
cd /usr/local/directadmin/scripts
./mysql.sh