Jump to content

Is remote MySql secure?


daydreamer

Recommended Posts

I just realized that I can connect to my database remotely like this:

 

$sql = mysql_pconnect('18.71.20.43', 'user', 'password');

 

I always thought the mysql database had to be on the same network as your web server running the PHP code.

 

Is it secure to connect to a database over the Internet, using the above method, without encrypting the query's or information I plan to input/extract from the database?

 

Thanks.

 

 

Link to comment
https://forums.phpfreaks.com/topic/129952-is-remote-mysql-secure/
Share on other sites

Any time information is sent over a connection that is not encrypted, it can be viewed if someone really wants to see it. If your queries or returned data could contain sensitive information that you don't want anyone to see, you would need to use an encrypted connection.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.