https://blog.csdn.net/qq_30758673
下载安装mysql
- 卸载自带的迷你库
rpm -qa | grep mariadb | xargs rpm -e --nodeps- 下载yum镜像下载源
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm- 安装yum下载源
yum -y install mysql57-community-release-el7-10.noarch.rpm- 开始下载
yum -y install mysql-community-server
systemctl start mysqld.service
systemctl enable mysqld.service
grep "password" /var/log/mysqld.log
mysql -uroot -p
SET global validate_password_policy=0;
set global validate_password_length=1;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。