美文网首页
MySql.Data.MySqlClient.MySqlExce

MySql.Data.MySqlClient.MySqlExce

作者: 毛仑上保罗先生 | 来源:发表于2018-08-06 19:56 被阅读0次

    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 BY 'password' PASSWORD EXPIRE NEVER; 
    #更新密码(mysql_native_password模式)    
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '{NewPassword}';

    相关文章

      网友评论

          本文标题:MySql.Data.MySqlClient.MySqlExce

          本文链接:https://www.haomeiwen.com/subject/krzgvftx.html