Question

How Do I Connect To MySQL Using OBDC?

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted Answer

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

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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