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.

alexdo
Site Moderator
Site Moderator badge
March 25, 2020
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

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.