CentOS安装两个MYSQL5.7.21
项目上正式是MySQL5.7.21-log版本,但是本地测试是使用的MySQL5.7.22,蛋疼的客户非得统一版本,本着学习的精神,自己折腾了一天、 于是把测试数据库也撞上了MySQL5.7.21 第一步 下载:mysql-5.7.21-linux-glibc2.12-x86_64 第二步 上传、解压mysql-5.7.21-linux-glibc2.12-x86_64 ,使用tar -xvf mysql-5.7.21-linux-glibc2.12-x86_64,将解压的文件重命名并移到/usr/local 第三步 在mysql-5.7下新增文件夹data,var,etc备用 第四步 创建数据库配置文件,如果在/etc(不是自己创建的)下有my.cnf则修改,如果没有则touch新建 # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. It‘s a template which will be copied to the # *** default location during install, and will be