actually my aim is to connect java program with database, installation of sql yog i got an error like this"error no.2003
cant connect to mysql server on localhost(10061 )", what can i do now to connect java program with mysql yog
When you say "mysql yog" I assume you mean SQLyog?
SQLyog is only a GUI tool to work with a MySQL database. You have to install the actual MySQL server first. That's why you get a "can't connect to mysql" message, because there is no MySQL server to connect to.
See this page to download and install a MySQL server. Also, if you are looking for a GUI tool you may want to consider MySQL Workbench.
I solved by uninstalling the IPV6 protocol from my system. Open a shell window and type:
ipv6 uninstall
Reboot your machine and re-install mysql. The problem is that MySql translates "localhost" as "::1" (ipv6) instead of "127.0.0.1" (ipv4), so it sees it as a foreign machine.
Comment