actually i am trying to connect MYSQL db which is located in my windows computer. but what i want is, it should be access from any computer from anywhere. (its a requirement for me, because i am writing a java swing desktop application) so , the mysql db should be stored on only one pc, and it should be accessed from any computer with the ip address of the pc in which db is store. i have tried everything, but nothing worked out.
i have asked 2 question on stackoverflow, but no one is answering properly
first question & second question
- i tried 3306 port forward in router setting.
- inbound and outbound rules have been added.
- bind-address property is set to 0.0.0.0 in my.ini file of mysql.
- i have assigned reserved ip to my pc in router setting.
added user using create user command.so that it can be accessed from any ip (@%)
- have granted full permission to that user
- and then i tried to test mysql connection from
this online connection testing tool
but when i tried it using my ip, user, password and db name it gives me error Can't connect to MySQL server on 'my ip' (13)
so, somewhere i read about ssh... so i was trying it... i tried, hostname=ip of my pc
under tunnels section of SSH... source port=3306 destination=127.0.0.1:3306
but after clicking on open button it gives me error called, Netork error connection refused.
please someone help me. i need to connect my mysql db from any pc from anywhere.