I follow the instructions grant database privileges to rails. I used the following code:
GRANT ALL PRIVILEGES ON demo_proejcts_development.* TO'rails_user'@'localhost' IDENTIFIED BY PASSWORD 'password'
The demo_proejcts_developments is a database I created and I want to grant the privileges to the rails_user account
But it gives me an error,
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY PASSWORD 'password'' at line 1
I have tried to use ` to cover the project name, `demo_projects_development`, but it stills failed.
And more, I tried to separate the comment as two line via 'alter user', it still failed.