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.

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

https://www.digitalocean.com/community/tutorials/how-to-allow-remote-access-to-mysql

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

https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-configuration-dsn-windows-5-2.html

https://dev.mysql.com/doc/refman/5.7/en/windows-and-ssh.html

https://help.interfaceware.com/v6/connect-to-mysql-from-windows-with-odbc

Hope this helps!

Regards,
Alex

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

https://www.digitalocean.com/community/tutorials/how-to-connect-to-a-mysql-server-remotely-with-mysql-workbench

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.
Submit an Answer