因为mysql8.0密码加密的问题,mysql8.0对用户密码的加密方式为caching_sha2_password,
在mysql中修改
> alter user 'root'@'localhost' identified with mysql_native_password by 'yourpassword'
> flush privileges
因为mysql8.0密码加密的问题,mysql8.0对用户密码的加密方式为caching_sha2_password,
在mysql中修改
> alter user 'root'@'localhost' identified with mysql_native_password by 'yourpassword'
> flush privileges