Forgive me if this is a simple question as I have never used MYSQL before. I want to connect to MYSQL through VB. What do I need to do to make this work. I have installed mysql and the myodbc 3.51 on my server. Now I am at my client machine doing some vb code. Lets say the server address is 192.0.0.1 and the username is user and the password is password. This is what I have for the connection code.
strConnect = "Driver=mySQL;Server=192.0.0.1;Option=147992;Database=amav_ops;Uid=user;Pwd=password;"
cn.Open strConnect
I get a runtime error when this is executed.. -2147467259(80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
Again I am really new to this, so any help will be appreciated, im sure its just something simple that i am missing.
Thanks,
-J
strConnect = "Driver=mySQL;Server=192.0.0.1;Option=147992;Database=amav_ops;Uid=user;Pwd=password;"
cn.Open strConnect
I get a runtime error when this is executed.. -2147467259(80004005) [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified.
Again I am really new to this, so any help will be appreciated, im sure its just something simple that i am missing.
Thanks,
-J