~# mysqladmin create asterisk
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
sip:~# ps aux | grep mysq
root 3964 0.0 1.0 3652 1280 pts/0 S 14:07 0:00 /bin/sh ./bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/sip.pid
mysql 3987 0.0 11.8 100168 14120 pts/0 Sl 14:07 0:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file=/usr/local/mysql/data/sip.pid --skip-external-locking
root 4158 0.0 0.5 2852 708 pts/0 R+ 15:12 0:00 grep mysq
sip:~# /etc/init.d/mysql stop
Shutting down MySQL..
sip:~# mysqladmin create asterisk
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
sip:~# /etc/init.d/mysql start
Starting MySQL
sip:~# mysqladmin create asterisk
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
sip:~#