案例:今天实施MySQL主从+SSL加密传输时候,master为slave签署证书有一个小小问题:
failedto update database TXT_DBerror number 2
1 |
|
一开始没留意,最后导致在slave通过证书连接master时候报错证书错误。仔细检查才看到错误。
1、报错原因:
This thing happens when certificates share common data. You cannot have two
certificates that look otherwise the same.
意思当证书共享数据,不能两个相同。
2、解决方式:
2.1)修改index.txt.attr为no(采用)
1 2 3 |
|
2.2)将comonName设置为不同
在master和slave中,因为我用的名字都是renzhiyuan,才造成了这个问题。
3、slave重新登陆:(解决)
1 |
|
登录乐搏学院官网http://www.learnbo.com/
或关注我们的官方微博微信,还有更多惊喜哦~
本文出自 “永不放弃!任志远” 博客,请务必保留此出处http://renzhiyuan.blog.51cto.com/10433137/1885561