I can't figure out why and where Drush is set/configured not to use password when connecting DB.
For instance I was trying setup a quick site e.g. command drush qd which gives:
PDOException: SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: NO)
Or is it even any configuration? Is it about qd command? Earlier I tried to add db user name and password along as parameters ie. --db-su and --db-su-pw but no go.
Of course I could remove password for root user but it doesn't help me in the future and certainly won't help in building secure sites.
So how can I get Drush to use password for db connections? Does it inherit configuration details from some other config php, mysql, apache, debian?
I'm using Drush 6.20 with Ubuntu 14.04, PHP 5.5.9 and Apache 2.4.7.
localhost
. Hence, I tend to use127.0.0.1
, instead, on MAMP or similar. – Ollie May 2 '15 at 13:15