Jump to content

cbox


MySQL Connection


OinkPig619

Recommended Posts

Posted
How do i make a mySql Connection in VB 2008? I am working on a program that is a DB editor in VB and I know it is possible. Ive tried googling it and i didnt get anything good. Any help?
Posted
Dim MySQLConnectionString As String
Dim MyADOConnection As MySqlConnection

MySQLConnectionString = "Server=myServer;" & _
 "Database=myDatabase;" & _
 "Uid=myUserID;" & _
 "Pwd=myPassword;" & _
 "Connect Timeout=30;"
MyADOConnection = New MySqlConnection(MySQLConnectionString)
MyADOConnection.Open()

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...