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

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

SearchServerVirtualization

SearchCloudComputing

SearchEnterpriseDesktop

Close