vbnetuser1
Technical User
I am writing a simple app to connect to a MySql database. When I run the following code:
Dim cnADONetConnection As New OleDb.OleDbConnection
cnADONetConnection.ConnectionString = "DRIVER{MYSQL ODBC 3.51 DRIVER}; SERVER=localhost; DATABASE=test_db_connect; USER=*****; PASSWORD=*****; OPTION=3"
cnADONetConnection.Close()
I get the following error:
---------------------------
Error Message
---------------------------
An error has occured.
ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-5.5.9]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group' at line 1
---------------------------
OK
---------------------------
No idea what's going on here. The 'group' refered to in the error message is my test table called 'group'. Its 1 table with 2 records. I get the same error if I set the connection to DSN. Any assistance would be appreciated.
Ted
Dim cnADONetConnection As New OleDb.OleDbConnection
cnADONetConnection.ConnectionString = "DRIVER{MYSQL ODBC 3.51 DRIVER}; SERVER=localhost; DATABASE=test_db_connect; USER=*****; PASSWORD=*****; OPTION=3"
cnADONetConnection.Close()
I get the following error:
---------------------------
Error Message
---------------------------
An error has occured.
ERROR [42000] [MySQL][ODBC 3.51 Driver][mysqld-5.5.9]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group' at line 1
---------------------------
OK
---------------------------
No idea what's going on here. The 'group' refered to in the error message is my test table called 'group'. Its 1 table with 2 records. I get the same error if I set the connection to DSN. Any assistance would be appreciated.
Ted