Replies: 2 comments 1 reply
-
new MySqlConnection(...).Open() 这个测试通过,就行 |
Beta Was this translation helpful? Give feedback.
0 replies
-
加上 AllowPublicKeyRetrieval=true 这个参数就可以了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
本机mysql服务第一次启动时 使用ORM链接会报:
【主库】Next recovery time: 2023/6/23 18:37:03 (Retrieval of the RSA public key is not enabled for insecure connections.)
链接字符串:
"Data Source=127.0.0.1;Port=3306;User ID=root;Password=xxxx; Initial Catalog=xxxx;Charset=utf8; SslMode=none;Min pool size=1";
使用Navicat或者命令行登录一次mysql后 再使用ORM链接一切正常
就是说第一次启动mysql服务 必须使用命令或者Navicat登录一次之后ORM才能正常使用 否则就报标题的错误。
Beta Was this translation helpful? Give feedback.
All reactions