centos7编译安装MySQL5.7.25
2019年4月16日
没有评论
1 下载mysql源码包
在mysql网站,左边选MySql Community Server,选带boost的版本
“Select Version”选版本,Select Platform选”Source Code”,然后选”Generic Linux”
阅读全文…
1 下载mysql源码包
在mysql网站,左边选MySql Community Server,选带boost的版本
“Select Version”选版本,Select Platform选”Source Code”,然后选”Generic Linux”
阅读全文…
1 修改配置文件
vim /etc/my.cnf
在[mysqld]节点添加
skip-grant-tables
2 重启mysql
3 用空密码进入
mysql -uroot
执行:
update mysql.user set authentication_string=password(‘MyNewPass’) where user=’root’ and Host = ‘localhost’;
flush privileges;
退出mysql
4 后续工作
还原my.cnf
以root登陆后再次执行如下命令
ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyNewPass’;
近期评论