Hey, Guys I am trying this sql query: GRANT SELECT, UPDATE, INSERT, CREATE, DELETE ON mySample.* TO Vrutin@'localhost' IDENTIFIED BY 'password'; Code (markup): I did flush the privileges. Any ideas?
First, make sure how the user 'Vrutin' has been created: mysql> select * from mysql.user where user like 'Vrutin' Do you see 'localhost' value is 'Host' column? If not, probably the user was not associated with domain 'localhost'. In this case you should compose GRANT-query as follows: GRANT SELECT, UPDATE, INSERT, CREATE, DELETE ON mySample.* TO Vrutin
Try removing the '' around localhost and even try without the @localhost if all fails. One more thing, are you sure you're running the MySQL query as a privileged user who can actually give out privileges? Basically it would be a root/admin MySQL user otherwise it will never work if the account you're using to grant privileges doesn't have permissions.