Skip to content

Instantly share code, notes, and snippets.

@aledalgrande
Created October 29, 2012 14:17
Show Gist options
  • Save aledalgrande/3973791 to your computer and use it in GitHub Desktop.
Save aledalgrande/3973791 to your computer and use it in GitHub Desktop.
# ps ax | grep 3306
28723 pts/1 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
28930 pts/1 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
29096 pts/1 R+ 0:00 grep 3306
# ls /var/lib/mysql/mysql.sock
ls: cannot access /var/lib/mysql/mysql.sock: No such file or directory
# service mysql stop
Shutting down service MySQL done
# ps ax | grep 3306
28723 pts/1 Sl 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-external-locking --port=3306 --socket=/var/lib/mysql/mysql.sock
29159 pts/1 S+ 0:00 grep 3306
# service mysql start
Starting service MySQL warning: /var/lib/mysql/mysql.sock didn't appear within 30 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment