Can't create databases with a new user
I made a new user and from root I run the command:
GRANT ALL PRIVILEGES ON db.* TO 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';
But then when I want to create a new data开发者_如何学Gobase from user USER it always says:
Acces denied for user 'USER'@'localhost' to database 'database_name'
I neved used databases, so can anyone help me on how to create a database ?
Try this
GRANT ALL PRIVILEGES ON *.* TO 'USER'@'localhost' IDENTIFIED BY 'PASSWORD';
精彩评论