Click here to Skip to main content
15,888,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to know how can i connect to mysql database from another computer in the same local network using VB.Net?
I read that it is with this line
Server=192.168.10.2;Port=3306;Database=base ;Uid=admin;Pwd=system

but do i need a references or download a driver or both?
also i read that i need to grant access to the computer which is trying to connect, please help me...
Thank you!!
Posted

There is a very good run through of using MySql with VB.NET here[^].

If the one in the link is too elementary for you, then go to the bottom and click on the 'next article' link, and so on till you find the part that deals with your problem.
 
Share this answer
 
Comments
antonioj1015 6-Dec-10 19:23pm    
Thanks it has some very usefull info that i was planning on looking at later, i still havent found how to connect to another computer, but Thanks its that page its great!!
Setting the correct connection string and credentials should do it, but if it's not working then what error are you seeing?

- Have you checked your filewall allows traffic through the port you're using?
- Are the username/password correct?
- can your application connect to the database when it's on the same machine as the database?
 
Share this answer
 
Comments
antonioj1015 8-Dec-10 21:18pm    
when its on the same machine it connects but when its on another computer it says:
unable to connect to any of the specified MySQL hosts.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900