简体   繁体   中英

How to secure a connection to a remote mysql database

I'm building a php web app with the codeigniter framework and I'm connection to a remote mysql database from my application.

Normally, I connect to my remote databases over a ssh tunnel for security reasons. But I'm unsure how to do this from within a php/codeigniter application. Anyone know how this is typically done?

You can connect to your Mysql Server directly via ssl. For an overview how to create certificates and the necessary changes to your configuration file have a look at http://dev.mysql.com/doc/refman/5.1/en/creating-ssl-certs.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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