参考https://blog.csdn.net/lihaiyong92/article/details/81330046
MySQL在centOS7下的下载安装配置 测试ok
https://blog.csdn.net/lx_Frolf/article/details/85339622
MySQL下载与安装(windows) 测试ok
https://blog.csdn.net/weixin_42869365/article/details/83472466
yum -y remove mariadb*
yum list installed | grep mariadb
wget -P /home/lisonglin http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
rpm -ivh mysql57-community-release-el7-11.noarch.rpm
检查mysql的YUM源是否安装成功:yum repolist enabled | grep "mysql.*-community.*"
yum repolist all | grep mysql
可以通过类似下面的语句来启动或禁用某些版本
yum -y install yum-utils
yum-config-manager --enable mysql57-community
yum-config-manager --disable mysql56-community
yum repolist enabled | grep mysql
yum install mysql-community-server -y
systemctl start mysqld
mysql -uroot -p 默认密码123456
修改密码
]# ./mysqladmin -u root -p password
Enter password:
New password:
Confirm new password:
Warning: Since password will be sent to server in plain text, use ssl connection to ensure password safety.
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]#
[root@localhost bin]# mysql -uroot -p
Enter password: