|
-
Apr 3rd, 2005, 01:17 AM
#1
Thread Starter
Lively Member
VB and MySQL
I want to connect with MYSQL database from VB6. Help me, how I can do that.
I have worked with Access and VB but not with server type database before.
Rajib
-
Apr 3rd, 2005, 07:22 AM
#2
Re: VB and MySQL
If you've used ADO with Access then there isn't that big difference between the code you use to connect to MySQL. The main difference is the ConnectionString. Here's a generic ConnectionString that you can use with MySQL:
"Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=ThePassword"
-
Apr 4th, 2005, 12:34 AM
#3
Hyperactive Member
Re: VB and MySQL
you can use dataenvironment as a connection
-
Apr 5th, 2005, 02:27 AM
#4
-
Apr 5th, 2005, 02:32 AM
#5
Addicted Member
Re: VB and MySQL
connect some dsn connection visit www.vbrad.com
" I never did anything worth doing entirely by accident.... Almost none of my inventions were derived in that manner. They were achieved by having trained myself to be analytical and to endure and tolerate hard work."
" Many of life's failures are experienced by people who did not realize how close they were to success when they gave up. "
- Thomas Alva Edison-
In God We Trust 
-
Apr 5th, 2005, 02:41 AM
#6
Re: VB and MySQL
phrajib,
Look here for an example. Look under Multi Database Control
-
Apr 5th, 2005, 04:10 AM
#7
-
Apr 8th, 2005, 02:48 PM
#8
Fanatic Member
Re: VB and MySQL
I'm trying to setting up a connection with a Data Environment to a MySQL DB using MyOLEDB Provider 3.0.
In the Data Link Properties Dialog, I filled all the blank like this :
Data Source : Data
Location : localhost
User name : root
Password : ***
The user and password are correct.
When I click on Test Connection, it always took me to the "MySQL Data Source Name Setup" dialog and there, I don't know what to do.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|