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
The simple solution that worked for me is: change localhost to 127.0.0.1 in your database.yml or in your script if writing one.