What is the equivalent of sequel pro's just checking “connect using ssl” in mycli?

巧了我就是萌 提交于 2019-12-02 03:27:36

问题


When using SequelPro, I have to check "Connect using SSL" option to connect to a remote mysql database server, but without providing "Key File", "Certificate" or "CA Cert", which is shown as the screenshot below:

Is there an equivalent way to do it in mycli? Or just plain mysql command?


回答1:


It's the --ssl option, which means "Enable encrypted connection".

mysql --ssl

A full list of command-line flags for MySQL CLI (mysql) can be found here:

https://dev.mysql.com/doc/refman/5.7/en/encrypted-connection-options.html

I don't believe that that checkbox does anything as fancy as verifying certificates (i.e. it does not pass in the --ssl-verify-server-cert option).



来源:https://stackoverflow.com/questions/43581284/what-is-the-equivalent-of-sequel-pros-just-checking-connect-using-ssl-in-mycl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!