Rini

Rini

  • 1.5k
  • 204
  • 31.9k

Connection Problem

Oct 28 2014 2:02 AM
When i connect my database in VB.net i got an error format of the initialization string does not conform to specification starting at index 0.
 
My code is:
Dim conobj1 As MySqlConnection 
conobj1 = New MySqlConnection("server" + txtdatabase.Text & "';'" & "userid" + txtUser.Text & "';'" & "password" + txtPass.Text & "';'" & "database" + txtData.Text)
conobj1.Open()

Answers (2)