大家好,又见面了,我是你们的朋友全栈君。
Hello everyone, see you again, I'm your friend Quan Zhanjun.
Detailed steps to install mysql-5.7.30 under Linux [easy to understan
前言
下面记录了我在Linux环境下安装Mysql的完整过程,实操记录,
只为让更多人少踩坑,本次安装版本为:mysql-5.7.30,64位操作系统 官网下载地址:mysql-5.7.30-el7-x86_64.tar.gz 百度网盘地址:百度网盘地址 提取码:lyqh
The following records the complete process of installing Mysql in the Linux environment, practical records, just to let more people step on the pit, this installation version is: mysql-5.7.30, 64-bit operating system Official website download address: mysql-5.7.30-el7-x86_64.tar.gz Baidu network disk address: Baidu network disk address Extraction code: lyqh
1、安装前准备
1、检测系统是否自带mysql
[root@localhost /]# rpm -qa | grep mysql
2、如果是,则使用下面命令进行删除:
[root@localhost /]# rpm -e --nodeps ‘上一步查找的名称’
3、删除成功后,查询所有Mysql对应的文件夹 (After the deletion is successful, query all folders corresponding to MySQL)
[root@localhost ~]# whereis mysql
mysql: /usr/bin/mysql /usr/local/mysql
[root@localhost ~]# find / -name mysql
/run/lock/subsys/mysql
/etc/rc.d/init.d/mysql
/usr/bin/mysql
/usr/local/mysql
/usr/local/mysql/bin/mysql
/usr/local/mysql/include/mysql
/usr/local/mysql/data/mysql