Originally Posted by
hejsan1
I dont get it..Can u explain more. I got every Required Tools installed but dont get it...
First of all, you must add the MySQL Connector reference to the project:
Project > Add Reference > MySQL.data.dll
Then you need to edit the source to match your database info, these are the lines you need to edit:
Form1
Code:
dbConnLog.ConnectionString = "server=;user id=;Password=;persist security info=True;database="
and
Code:
vryUser.CommandText = "Select * From DATABASE.TABLE Where Username= '" & TextBox1.Text & "' And Password = '" & TextBox2.Text & "' "
Form2
Code:
regConn.ConnectionString = "server=;user id=;Password=;persist security info=True;database="
and
Code:
vryUser.CommandText = "Select * From DATABASE.TABLE Where Username= '" & TextBox1.Text & "' And Password = '" & TextBox2.Text & "' "
Code:
regUser.CommandText = "INSERT INTO DATABASE.Table(Username, Password) VALUES (@Username, @Password)"
If you don't edit these lines you'll have a MySQL error like this: