Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I have a visual basic app that uses the WAN connection (connecting thru router). It uses mysql as its database for the data. After I have finished the application, I tried connecting the mysql server on a Windows 7 pc, from another pc with same OS, and the connection was fined, I can query any data I want. Then came a brand new pc with Windows 10 as its OS. So I installed the mysql server with the database on this new pc. However, when I try to connect to it from a Windows 7 laptop or PC via WAN, the connection always fails. But when I try to connect the mysql server on the Windows 10 pc's localhost the connection is fine? Am i missing something? Or is this bug in Windows 10?

What I have tried:

I tried turning off the firewall on both PCS( the Windows 10 pc and the Windows 7 laptop), but still it is failing, I tried googling for an answer but it seems that they only provide a solution if you cannot connect on the localhost on the Windows 10 pc with the mysql server installed, but to me I can connect to it just fine. I'm connecting the mysql server thru mysql odbc driver.

Any help, link, or solution will be much appreciated. Thank you very much :)
Posted
Comments
Herman<T>.Instance 31-Oct-16 8:46am    
IP4 or IP6?
kenchidag 2-Nov-16 19:32pm    
Hi digimanus! umm its IP4
Herman<T>.Instance 3-Nov-16 9:39am    
Do you get any exception?
kenchidag 3-Nov-16 20:20pm    
there is no exception in the case of my vb app,, however the error comes from connection the mysql odbc driver installed on my laptop via Administrative Tools on my Windows 7 laptop, it says "could not connect to the specified instance". Although the username i created in mysql to access mysqlserver has all priviledges granted on it. and when i ping the connection its an error, thought both firewalls are turn off already. Also on a personal note I just noticed that when I ping the connection thru cmd it is also error it says "Request time out".But when i ping the connection from my Windows 10 pc to the Laptop pc with Windows 7, the connection is Ok. Sometimes I just wonder? Why is it like that hahaha :). Its wierd though,, haha
Herman<T>.Instance 4-Nov-16 3:58am    
do you connect/pin to the right portnumber of the MySql Server?

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