MySql常见错误及解决方法

MySql 8.0 C#连接报错 Authentication to host '192.168.14.11' for user 'root' using method 'caching_sha2_password' failed with message: Reading from the stream has failed.DbType="MySql";ConfigId="".

在连接字符串后面加上   SslMode=None

 

错误Incorrect key file for table ‘.\表名.MYI‘; try to repair it的解决办法

在mysql命令行运行check table xxx(表名);
如果存在问题,运行repair table xxx(表名)

posted @ 2024-10-26 19:39  simadi  阅读(16)  评论(0编辑  收藏  举报