Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 767935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:06:10+00:00 2026-05-14T18:06:10+00:00

If we were to use server1 for all files (file server), server2 for mysql

  • 0
  1. If we were to use server1 for all files (file server), server2 for mysql database (database server).
    In order for websites in server1 to access to the database in server2, isn’t it needed to connect to to ip address of second (mysql server) ?

In this case, is remote mysql connection.

However, I seen from some people comment on the security issue.

remote access to MySQL is not very secure. When your remote computer first connects to your MySQL database, the password is encrypted before being transmitted over the Internet. But after that, all data is passed as unencrypted “plain text”. If someone was able to view your connection data (such as a “hacker” capturing data from an unencrypted WiFi connection you’re using), that person would be able to view part or all of your database.

So I just wondering ways to secure it?

  1. Allow remote mysql access from server1 by allowing the static ip adress
  2. allow remote access from server 1 by setting port allowed to connect to 3306
  3. change 3306 to other port?

Any advice?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:06:10+00:00Added an answer on May 14, 2026 at 6:06 pm

    1) Connect to MySQL over SSL. This will protect your username/password as well as data that is being transferred. Another option is to use a vpn which is better suited if you have multiple machines or daemons that need to be shared.

    2)Do not Allow remote root logins. At the very least disable the “root” account becuase this is the first thing an attacker is going to try and brute force.

    3)Restrict ip addresses of the user accounts you are using.

    4) Remove file_priv from all accounts. If granted this will allow an attacker to read and write files on the server hosting mysql.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone attempted to use SQL Server Database as a Subversion file system back
I have an Ubuntu Server (with all of LAMP and Subversion installed). I use
Is there any way to make all the applications on a server use SQL
I use phpUnit on a integration server to run all tests and if I
I'm trying to use SQL Server 2000 DTS Package to download a file from
If you have two applications residing on the same server, can you use Server.Transfer
We use SQL Server 2000/2005 and Vault or SVN on most of our projects.
I know the use of server-side controls is a no-no in ASP.NET MVC, however
Unfortunately I have to use Windows Server 2003 on my 32 bit workstation due
I usually do not use Sql Server Management Studio, I usually use Linqpad to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.