标签:laravel 重置 efault host string nat pass pre mysq
修改 /etc/mysql/my.cnf
(我是 Ubuntu 16.04),添加下面一行:
default-authentication-plugin= mysql_native_password
然后重置密码:
ALTER USER ‘user‘@‘localhost‘ IDENTIFIED WITH mysql_native_password BY ‘password‘;
ALTER USER ‘user‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘password‘;
@‘loaclhost‘ 修改本地密码
@‘%’ 修改远程密码
标签:laravel 重置 efault host string nat pass pre mysq
原文地址:https://www.cnblogs.com/7heOne/p/14838372.html