Du kan använda säker anslutning till MySQL:
MySQL-sida:https://dev.mysql.com/ doc/refman/5.5/en/secure-connections.html
PHP-sida:https://php.net/manual/en/mysqli. real-connect.php (MYSQLI_CLIENT_SSL-flagga)
Jag har inte arbetat med SSL-anslutningar till MySQL med PHP, men jag tror att det inte är svårt att hitta nödvändig information på https:// php.net , https://dev.mysql.com och https://google.com
Uppdatera
Detta kan hjälpa:https://www.madirish.net/node/244 , PHP till MySQL SSL-anslutningar , https://www.php.net/manual/en/ mysqli.ssl-set.php