安裝Mysql8.0.16後,用Navicat去連接 localhost,然後報錯:Client does not support authentication protocol requested by server;解決方法的命令如下:
- use mysql;
- alter user 'root'@'localhost' identified with mysql_native_password by '********';
- flush privileges;
另:
啓動mysql服務:net start mysql
停止mysql服務:net stop mysql
修改密碼:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼'。