Q

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.

This was first published in April 2006

Dig deeper on Open source databases

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.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

This Content Component encountered an error
Close