简体   繁体   English

使用PHP加密的MySQL连接

[英]Encrypted MySQL Connection using PHP

I have to encrypt a connection between a PHP script one one server to a MySQL database on another server. 我必须加密一台服务器的PHP脚本与另一台服务器上的MySQL数据库之间的连接。 What is the best way to do this using PHP? 使用PHP做到这一点的最佳方法是什么? I'm open to any encryption method. 我接受任何加密方法。

Thanks! 谢谢!

You can do this with an SSL connection. 您可以使用SSL连接来执行此操作。

Here's a link to the official documentation: http://dev.mysql.com/doc/refman/5.0/en/secure-connections.html 这是官方文档的链接: http : //dev.mysql.com/doc/refman/5.0/en/secure-connections.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM