开发者

How to connect MySQL5 with VB6.0 by coding?

开发者 https://www.devze.com 2023-02-16 18:13 出处:网络
i want to 开发者_如何学编程connect my Visual Basic 6.0Application with MySQL5 database by coding not by DSN. what will be the connection string to connect them?

i want to 开发者_如何学编程connect my Visual Basic 6.0 Application with MySQL5 database by coding not by DSN. what will be the connection string to connect them? If anyone help me to do this, it would be greatly appreciated.

Thanks,

Yugal


This should work:

ConnStr = "DRIVER={MySQL ODBC 5.1 Driver};" _
    & "SERVER=myserver;" _
    & "DATABASE=mydatabase;" _
    & "UID=myuserid;" _
    & "PWD=mypassword;" _
    & "OPTION=1"
0

精彩评论

暂无评论...
验证码 换一张
取 消