I installed MySQL using mysql-installer-5.5.20.0.msi on Windows 7. From the cmd window, I run \"mysqlshow -u root -p\". It asked for a password, then return
In Windows 7
mysqld.exe --install
That's all
Please Try the following steps:
then press "Windows key + R" write "services.msc", run as admin
start MySQL service.
In case of Xampp Installation.
Go to your xampp installation and mysql folder, for my case: C:\xampp\mysql
Run the file "resetroot.bat" from cmd or explorer.
My installation started working!!!
I had the same issue and basically resolved it by pointing to a specific port number that my MySQL server was running on. Below is the command. Please edit the code to fit your case i.e your port number,your mysql server username,your password.
mysql -u root -pYourMysqlRootPassword -P3307
I have Windows 8.1 and I too had this problem. My teacher told me it was probably because my MySQL server had stopped running. She told me to go into the Computer Management utility (right click the lower-most left hand corner of the screen on Windows 8.1 to access Computer Management). Then under Services and Applications, open up the Services and find MySQL. You should be able to right-click on MySQL and restart it.
if it is showing error 2003 (HY000): Can't connect to MySQL server on localhost (10061) than