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 @   simadi  阅读(37)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2023-10-26 第 10 节 字符编码的处理
2023-10-26 第 9 节 如何使用注解
2023-10-26 第 8 节 Python文档化
点击右上角即可分享
微信分享提示