为了账号安全,请及时绑定邮箱和手机立即绑定

如何连接安装了ssl证书的mysql?

如何连接安装了ssl证书的mysql?

守候你守候我 2018-08-20 10:09:41
Data Source=rm-wz9yj5x8e1***;Initial Catalog=***;user id=***;password=***;Convert Zero Datetime=True;CertificateFile=E:\mysqlssl\ApsaraDB-CA-Chain\ApsaraDB-CA-Chain.pem;CertificatePassword=***;SslMode=Required;报错  An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.数据库用的是阿里云的ssl证书 RDS mysql数据库,阿里云下载证书包含pem、p7b、jks三种格式,只读账号不需要ssl证书,测试可以连接,读写账号需要ssl证书以上是证书连接方式。请较各位大神,求解
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 731 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号