Starting
MySQL...................................[FAILED]
启动MYSQL都失败了当然没办法用了,解决方法如下
#chown
-R
mysql:mysql
/var/lib/mysql#/etc/init.d/mysqld
start启动
MySQL:
[
确定
][root@localhost
lib]#
mysqladmin
-uroot
password
'你需要设置的mysql密码'
[root@localhost
lib]#
mysql
-uroot
-p
Enter
password:
Welcome
to
the
MySQL
monitor.
Commands
end
with
;
or
\g.
Your
MySQL
connection
id
is
3
to
server
version:
4.1.11
Type
'help;'
or
'\h'
for
help.
Type
'\c'
to
clear
the
buffer
装之前看一下系统是否存在mysql可以用rpm
-qa|grep
mysql看一下,如果有两个版本,那直接用rpm
-e
卸载掉,然后卸载干净在装rpm
-ivh
#useradd
mysql
#chown
-R
mysql.mysql
/var/lib/mysql
.........
检查有没有mysql用户和组
没有就建立
然后设置mysql目录权限
那个xxxxx
'/var/lib/mysql/mysql.sock'
的错误一般都是权限问题导致的