mysql5.7中对系统做了安全升级 ,提供了ssl方式连接,区别于普通的sock和本地tcp方式连接。 mysql -uroot -p --ssl-mode=required 登录进去,会看到如下图,使用命令 \s