I am able to create new databases through the root account. but I need to create new databases using a new user that I have created.
Here is error I'm getting when trying to create a database using the new user
ERROR 1044 (42000): Access denied for user 'user'@'localhost' to database 'new_db'
How can I grant permissions to "user" so it create any number of new databases?
Update:
This is also what I tried:
mysql> grant all privileges on db.* to 'user'@'%' with create;
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 'create option' at line 1
mysql>