vb6 - Connect to mySQL over LAN -
hey all, having problems connecting pc on local lan thats running mysql database.
the code in vb6 have is:
.connectionstring = "driver={mysql odbc 5.1 driver};server=\\serverpc;database=lstoredb;uid=root2;pwd=thepassw;option=3" if put "localhost" works fine (i have mysql running on dev system well) once put on other machine doesn't ever connect.
i can access serverpc in network reason vb6 can not find it? i've tried ip address:
.connectionstring = "driver={mysql odbc 5.1 driver};server=192.168.1.9;database=lstoredb;uid=root2;pwd=thepassw;option=3" and still not work. turned off firewalls , still nothing... added port 3306 router 192.168.1.9 ip , nothing still!
the dev computer windows xp sp3 , mysql server on vista home prem. 32-bit.
any great! thanks! :o)
david
you need tell mysql allow remote connections databases hosts users. source
Comments
Post a Comment