Ask the Expert

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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: