2014-07-13 16:20:56
来 源
中存储网
MySQL
yum install mysqlyum install mysql-serveryum install mysql-develchgrp -R mysql /var/lib/mysqlchmod -R 770 /var/lib/mysqlservice my

yum install mysql

yum install mysql-server

yum install mysql-devel

chgrp -R mysql /var/lib/mysql

chmod -R 770 /var/lib/mysql

service mysqld start 

mysql

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('secret_password');

如果yum install 出现 Transaction Check Error:

错误可以采用以下解决办法:

Transaction Check Error:

file /usr/lib/mysql/libmysqlclient.so.15.0.0 from install of mysql-5.0.77-4.el5_5.4.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386

file /usr/lib/mysql/libmysqlclient_r.so.15.0.0 from install of mysql-5.0.77-4.el5_5.4.i386 conflicts with file from package mysqlclient15-5.0.91-1.jason.1.i386

解决办法:

#yum remove mysql mysql-devel mysql-server

如果还是不行,使用绝招:

rpm -Uvh --force mysql-5.0.77-4.el5_5.4.i386.rpm

rpm -Uvh --force mysql-server-5.0.77-4.el5_5.4.i386.rpm

rpm -Uvh --force mysql-devel-5.0.77-4.el5_5.4.i386.rpm

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。