-
重要更改:默认字符集已从latin1更改为utf8mb4。这些系统变量受到影响:character_set_server和 character_set_database系统变量的默认值已从latin1更改为utf8mb4。collation_server和collation_database系统变量的默认值已从latin1_swedish_ci更改为utf8mb4_0900_ai_ci
-
授权
grant all privileges on . to ‘admin’@’%’ with grant option; -
密码限定修改变成
1、set global validate_password.policy=0;
2、set global validate_password.length=1; -
mysql8改完密码ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
解决:
跳过mysql密码访问
vim /etc/my.cnf 最后添加skip-grant-tables 保存退出
重启mysqld
进入mysql -uroot -p 回车
select * from mysql.user where user=‘root’\G
Mysql8.0踩过的坑
最新推荐文章于 2023-03-03 19:18:03 发布