centos yum安装mysql并设定密码(64位机器)_MySQL
centos yum安装mysql并设定密码(64位机器)
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
bitsCN.com
上一篇: PS一起画画自己的那杆枪
推荐阅读
-
在CentOS 7下使用yum配置MySQL源并安装MySQL
-
Centos7.3下mysql5.7.18安装并修改初始密码的方法
-
CentOS6.3安装MySQL5.6.10并修改MySQL的root用户密码
-
CentOS6.3安装MySQL5.6.10并修改MySQL的root用户密码
-
centos yum安装mysql并设定密码(64位机器)_MySQL
-
在CentOS 7下使用yum配置MySQL源并安装MySQL
-
centos8安装mysql8并设置密码
-
yum安装MySQL并设置密码_MySQL
-
centos yum安装mysql并设定密码(64位机器)_MySQL
-
mysql5.7.18在Centos7.3下如何安装并修改初始密码的方法详解