大家好,我是烤鸭:
今天分享一下linux 装 mysql8.0。以下都是实践过的可以用的。
1. yum方式安装(最简单方式)
https://blog.csdn.net/weixin_37264997/article/details/80342838
2. linux系统安装mysql8.0.11完整教程(一般采用这个)
yum版本可能不是最新的,而且不能指定安装目录。这个教程比较麻烦,中间也可能遇到不同问题,下面有解答
https://blog.csdn.net/changyinling520/article/details/80963015
3. 出现的问题总结
mysqld_safe Directory '/var/lib/mysql' for UNIX socket file don't exists.
https://blog.csdn.net/qq_32331073/article/details/76229420
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
https://www.cnblogs.com/wzbz/p/6686179.html
mysql8 :客户端连接caching-sha2-password问题
https://blog.csdn.net/u010026255/article/details/80062153
【mysql】You must reset your password using ALTER USER statement before executing this statement报错处理
https://blog.csdn.net/muziljx/article/details/81541896
MYSQL8.0以上版本正确修改ROOT密码
https://blog.csdn.net/yi247630676/article/details/80352655
更改用户密码、权限命令:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'passwordd';ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'passwordd';update user set host = 'localhost' where user='root';GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwordd' WITH GRANT OPTION;