How Do I Connect To MySQL Using OBDC?

Posted March 25, 2020 2.1k views

I am running on windows os. I want to set up an ODBC connection to MySQL on my Digital Ocean Droplet. I have ODBC set up on my computer. What I cannot seem to find is good documentation regarding setting up my droplet to accept the connection and setting up username and password. Thank you.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hello, @dukesnuz

You can check this tutorial for allowing remote access to your MySQL database. You need to allow connection on the MySQL port which is 3306 by default.

As for the mysql connection itself using ODBC you can check these two articles:

Hope this helps!


by Mark Drake
Many websites and applications start off with their web server and database backend hosted on the same machine. With time, though, a setup like this can become cumbersome and difficult to scale. A common solution is to separate these functions by setting up a remote database, allowing the server...
  • Thank you this helped very much. I also used phpMyAdmin to add a new MySQL user with log in capabilities. Under Login Information -> Host name, I added the ip address of the machine which will be logging in and this worked.

The answer by Alex is very good, I would also suggest that you check out this links more

Also, I found this article which is also very good and am sure that it’s what you are looking for
Connect to MySql Using ODBC

by Jon Schwenn
Use MySQL Workbench to connect securely to your remote MySQL database using SSH.