Connecting to a remote database from a local VB app

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?

    Requires Free Membership to View

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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.