在Windows系统下安装MySQL提示错误报错信息如下:

password... MySQL error 0: Authentication to host 'localhost' for user 'root' using method 'caching等等这个故障是因为你设置的root密码过于简单提示错误。

相关错误:

1251-Client does not support authentication protocol requested by server

MySql.Data.MySqlClient.MySqlException:“Authentication to host 'localhost' for user 'root' using method 'caching_sha2_password' failed with message: Unknown database 'sys'”

解决办法:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';