vb6.0如何连接mysql数据库需要详细步骤谢谢
vb6.0如何连接mysql数据库需要详细步骤谢谢 安装mysql ODBC驱动运行数据库mysql
设置好连接字符串连接即可
'安装mysql驱动
With g_strDBConn
If .State = adStateOpen Then .Close
.ConnectionString = " DRIVER={MySQL ODBC 5.1 Driver};" _
& " SERVER=" & Trim(txtcServerName.Text) & ";" _
& " DATABASE=" & Trim(txtcDatabaseName.Text) & ";" _
& " UID=" & Trim(txtcLoginName.Text) & ";" _
& " PWD=" & Trim(txtcLoginPassword.Text) & ";" _
& " stmt=SET NAMES GB2312"
.CommandTimeout = 0
.Open
End With
+1
+2
补充:VB , 基础类