Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to connect to a mysql database on a windows server from linux. I don't have much experience working with Windows at all, especially windows server. How do I go about making a connection to the mySQL database from Linux? I was also wondering (and this should maybe be a different thread) if there is a Windows equivalent to the apache .htaccess file that would handle rewrites?

share|improve this question

migrated from Feb 21 '12 at 3:49

This question came from our site for professional and enthusiast programmers.

Yes, different thread. Different site too. – Ignacio Vazquez-Abrams Feb 21 '12 at 3:12
Remotely connecting to MySQL on a Windows host is no different to connecting to MySQL on any other OS. – John Gardeniers Feb 21 '12 at 20:37

Where the settings are placed depend on the client you're using, but you must specify the remote (Linux) host machine's address and port number (at least if not default) when connecting your client.

It is possible to run Apache on Windows. If you're trying to run a different web server, you need to to split that to another question.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.