ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

The following error is reported when assigning process permission to the user:

mysql> grant process on `b2c`.* TO 'b2c'@'%';
ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES

Analysis: It means that this is a global permission and cannot be assigned to the specified database, so change it to the following command:

mysql> grant process on *.* TO 'b2c'@'%';
Query OK, 0 rows affected (0.01 sec)

Guess you like

Origin blog.csdn.net/wyanyi/article/details/109096246