开发者

How to connect MySQL5 with VB6.0 by coding?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜