“Access Denied” when rails connects to Mysql

后端 未结 3 467
孤独总比滥情好
孤独总比滥情好 2021-01-17 01:25

I have did all the procedures as mentioned in several places and I also learned from lynda.com video tutorial. I used Mac 10.7 and I installed rubystack. I created the datab

相关标签:
3条回答
  • 2021-01-17 02:09

    DB yml Config file mentions username: simple_cms, but error message in console mentions user 'simplecms'@'localhost'.... I would suggest you should rewrite db yml configurations. I guess you might be having wrong username 'simplecms' written for test environment.... most probably.... do check...

    0 讨论(0)
  • 2021-01-17 02:15

    You'll want to grant permissions on the simplecmsdevelopment database for simple_cms@localhost:

    GRANT ALL PRIVILEGES ON 'simplecmsdevelopment'.* TO 'simple_cms'@'localhost';

    You might want to change the directory permissions to something like 755 for /usr/local/bin as well... That should fix the warning.

    0 讨论(0)
  • 2021-01-17 02:25

    Have you granted permissions for that user on that database? i.e., GRANT ALL PRIVILEGES ON simplecmsdevelopment.* TO simple_cms@localhost;

    0 讨论(0)
提交回复
热议问题