If you connect to MySQL using SSL, all your traffic between your SSL client and server will be encrypted.
MYSQL_CLIENT_SSL is deprecated. Using mysqli, if you need to use SSL,
$db = mysqli_init(); $db->ssl_set(null, null,'cacert.pem',NULL,NULL); $db->real_connect('host','user','pass','db');
Zz coder
source share