Linux系统操作(4)———安装mysql数据库
程序员文章站
2022-03-03 14:48:06
...
1:查看MySQL是否安装:
[[email protected] usr]# yum list installed mysql*
2:卸载MySQL:
[[email protected] usr]# yum remove mysql mysql-server mysql-libs compat-mysql51
[[email protected] usr]# rm -rf /var/lib/mysql
[[email protected] usr]# rm /etc/my.cnf
3:查看yum服务器可下载mysql的版本信息:
[[email protected] ~]# yum list | grep mysql
4:看着yum服务器有没有合适的安装包
[[email protected] ~]# yum list | grep mysql
5:yum安装MySQL:
#安装MySQL客户端:
[[email protected]~]# yum install mysql
#安装MySQL服务端:
[[email protected]~]# yum install mysql-server
#安装MySQL的库和头文件:
[[email protected]~]# yum install mysql-devel