mysql8 添加 mysql_native_password加密方式用户。

2019-10-29 10:41:00
wyd621
原创 0
php暂时不支持 caching_sha2_password 加密方式。
可以新建用老版加密方式初始化密码的用户
CREATE USER username@localhost identified with mysql_native_password by 'password';
再授予权限
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
FLUSH PRIVILEGES
发表评论
评论通过审核后显示。