启动服务
[root@localhost mysql]# /etc/init.d/mysqld start
Starting MySQL.......Manager of pid-file quit without updat[FAILED].
[root@localhost dbdata]# cat /data/dbdata/localhost.localdomain.err ------》查看报错的日志
。。。。。。。 141026 4:10:35 [ERROR] Can‘t start server : Bind on unix socket: No such file or directory
141026 4:10:35 [ERROR] Do you already have another mysqld server running on socket: /usr/local/mysql/tmp/mysql.sock ?
141026 4:10:35 [ERROR] Aborting
解决办法
[root@localhost mysql]# mkdir /usr/local/mysql/tmp/ -p
[root@localhost mysql]# chown -R mysql:mysql /usr/local/mysql/tmp/
[root@localhost mysql]# /etc/init.d/mysqld start
Starting MySQL.. [ OK ]
[root@localhost mysql]# mysql ------》运行mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.50-log Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.