sequel pro仅检查“使用ssl连接"的等效条件是什么?在mycli? [英] What is the equivalent of sequel pro's just checking "connect using ssl" in mycli?
问题描述
使用SequelPro时,我必须选中使用SSL连接"选项以连接到远程mysql数据库服务器,但不提供密钥文件",证书"或"CA Cert",如下图所示. :
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:
在 mycli 中是否有等效的方法?还是只是普通的mysql
命令?
Is there an equivalent way to do it in mycli? Or just plain mysql
command?
推荐答案
这是--ssl
选项,表示启用加密连接".
It's the --ssl
option, which means "Enable encrypted connection".
mysql --ssl
可在此处找到MySQL CLI(mysql
)的命令行标志的完整列表:
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
我不认为该复选框能像验证证书一样发挥任何作用(即,它不会通过--ssl-verify-server-cert
选项).
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).
这篇关于sequel pro仅检查“使用ssl连接"的等效条件是什么?在mycli?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!