So much for the success with Ruby on Rails detailed in the last post. Everything was going fine until I tried to create a scaffold
. At which point I get a nasty little MySQL error:
Access denied for user ''@'localhost' (using password: NO)
So basically, even though I’ve defined all the database settings correctly in the database.yml
file for the application, it’s trying to connect without a username or password. And as such, quite rightly, is failing. I’ve reinstalled the mysql gem, I’ve tried configuring the database.yml
file to connect as root; none of it works. Bit frustrated – I can’t see that I’ve done anything wrong, but it’s just not working. I’ve also tried users with both old and new password hashes, and that hasn’t helped either. Anyone got any ideas? Anyone? Lazyweb?