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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.