保护远程mysql连接 [英] Securing remote mysql connection
问题描述
不幸的是,我不得不将本地的Microsoft Access数据库与远程mysql数据库进行同步.
我写了一个php脚本,它将每10分钟同步一次数据库.但是我绝对担心安全性.
到目前为止,我已经使用cpanel设置了远程mysql,这仅允许我的IP地址建立连接.我还确保与我联系的用户具有有限的权限.
但是,我知道我要来回发送的数据是未加密的.我能做些什么来确保我的数据被加密吗?我还想知道我的mysql用户名/密码当前是否已按照我设置的方式进行加密?
卢卡斯
您可以使用与MySQL的安全连接:
MySQL端: http://dev.mysql. com/doc/refman/5.5/en/secure-connections.html
PHP端: http://php.net/manual/zh/mysqli.real-connect.php (MYSQLI_CLIENT_SSL标志)
我还没有使用PHP与MySQL进行SSL连接,但是,我认为在 http:上找到所需的信息并不难. //php.net , http://dev.mysql.com 和 http://google.com
更新
这可能会有所帮助: http://www.madirish.net/node/244 , PHP到MySQL SSL连接, 解决方案
You can use secure connection to MySQL:
MySQL side: http://dev.mysql.com/doc/refman/5.5/en/secure-connections.html
PHP side: http://php.net/manual/en/mysqli.real-connect.php (MYSQLI_CLIENT_SSL flag)
I have not worked with SSL connections to MySQL with PHP, but, I think it is not hard to find needed information on http://php.net, http://dev.mysql.com and http://google.com
Update
This may help: http://www.madirish.net/node/244, PHP to MySQL SSL Connections, http://www.php.net/manual/en/mysqli.ssl-set.php
这篇关于保护远程mysql连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!