一、启动mysql: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
#/var/run/mysqld/mysqld.sock文件不存在netstat --listen | grep mysql#发现unix 2 [ ACC ] STREAM LISTENING 458422 /tmp/mysql.sock#ln -s /tmp/mysql.sock /var/run/mysqld/mysqld.sock
二、登录mysql后,CREATE DATABASE RUNOOB;
mysql --user=root -p#输入密码