I am logged in to mysql as root. I can add a user like this:
CREATE USER test01@localhost IDENTIFIED BY 'test01';
When I attempt to grant privileges to the test01
user, nothing seems to happen:
GRANT SELECT,INSERT,UPDATE,DELETE ON test_database.* TO 'test01'@'localhost';
All of the *_priv
columns are set to N
for the test01
user.
Any ideas what I am doing wrong here? Thanks!
Here are the results of SHOW GRANTS...
mysql> SHOW GRANTS FOR 'test01'@'localhost';
+--------------------------------------------------------------------------------------+
| Grants for test01@localhost |
+--------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'test01'@'localhost' IDENTIFIED BY PASSWORD 'removed_hash' |
+--------------------------------------------------------------------------------------+
1 row in set (0.00 sec)