Securing remote mysql connection

前端 未结 2 559
萌比男神i
萌比男神i 2021-01-06 19:33

I\'m in the unfortunate position of having to sync a local microsoft access database with a remote mysql database.

I have written a php script which will sync the da

相关标签:
2条回答
  • 2021-01-06 20:06

    You could use the PHP mcrypt functions to encrypt and decrypt the data.

    A good example of this can be found right on SOF: Best way to use PHP to encrypt and decrypt?

    0 讨论(0)
  • 2021-01-06 20:07

    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

    0 讨论(0)
提交回复
热议问题