Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

MySQL localhost

 
Sathya Krish
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Report post to moderator
when I run mysql it displays the following error

c:\Sun\AppServer\mysql\bin>mysql
ERROR 2003 <HY000): Can't connect to MySQL server on 'localhost' <10061>

from where can I can get this localhost

thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
localhost is your local machine and MySQl server instance by default runs on port 3306, so checkout if that port is opened and any service is running on it. Use netstat command from command prompt to check any process running on port 3306.
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Report post to moderator
Also check this out, it talks about such problems:

http://qnatech.wordpress.com/category/mysql/
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
Indeed, most likely you don't have MySQL running on your machine.
Does it work if you replace localhost by 127.0.0.1 in your connect string?

Note that mysql is not the way to start MySQL.
mysql is a query tool, not a database startup tool.

Info: http://dev.mysql.com/doc/refman/5.0/en/windows-start-command-line.html

Regards, Jan
 
pramod talekar
Ranch Hand
Posts: 328
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello All,

I'm trying to install MySQL on my laptop.

When I installed it successfully, my code didn't show the desired answer.
so I removed and reinstalled MySQL and since then, even if I enter correct existing password followed by new password and confirm it.
It shows me Error no 2003, "Can't connect to MySQL server on localhost(10061).
I checked the process MySQL, but it stops within a moment after starting through control panel.

when I do the same through command prompt by giving sc qc MySQL, it shows me access denied when I'm the admin of the machine.

Please help.

Unfortunately I'm unable to attache word file here ...
 
Jan Cumps
Bartender
Posts: 2584
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi pramod .
Please create a separate post for your problem.


edit: typo
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic