I have a user called test
, and I want to grant process
privilege to him.
So far, I have tried:
grant process on *.* to test;
FLUSH PRIVILEGES;
then, I show all grants for user test
by running:
show grants for test@'%';
the result does contain a `PROCESS' line like:
GRANT PROCESS ON *.* TO 'test'@'%' IDENTIFIED BY PASSWORD ...
...
...
But it didn't appear to work for user test
.
So, how can I grant PROCESS privilege to a user?
这应该做:
GRANT PROCESS, SELECT ON *.* ...
mysql> GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' WITH GRANT OPTION;
Or Try
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
than Run
SELECT User FROM mysql.user;
you will find the User created by you, if you want to see Privileges of all users than run
SELECT * FROM mysql.user;
Finally to see Grant Information try
SELECT * FROM information_schema.user_privileges;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.