Problem solve Get help with specific problems with your technologies, process and projects.

Connecting to a remote database from a local VB app

MySQL expert Mike Hillyer recommends checking for firewalls before trying to connect a remote database from a local VB application.

I am developing project in VB6.0/MySQL. My database is on a remote server where I have my Web site hosted. How can I connect to the remote database from a local VB application? Is there anything I need to do before I start coding? What should be the method of establishing a database connection?

Odds are good that your Web hosting provider has protected the MySQL server with a firewall, so you may need to contact your provider and ask about SSH access to the server. Assuming you can be granted SSH access, look at this article for information on connecting via SSH tunnels.

Examples of connecting can be found in the various sample code at the following link: http://www.vbmysql.com/samplecode.

Dig Deeper on Linux servers

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.