When attempting to execute the query SET GLOBAL log_bin_trust_function_creators = 1, the following error occurs: #1227 - Access denied; you need the SUPER privilege for this operation. How can SUPER privileges be assigned to a MySQL database?
Using phpMyAdmin:
Using MySQL Console:
Execute the following query:
mysql> GRANT SUPER ON *.* TO user@'localhost' IDENTIFIED BY 'password';
Replace user with the username and password with the user's password.
End the session with FLUSH PRIVILEGES;.
mysql> FLUSH PRIVILEGES;
Note: It is recommended to grant SUPER privileges with *.* (all databases) instead of a specific database, as SUPER is a global privilege.
The above is the detailed content of How Can I Grant SUPER Privileges in MySQL?. For more information, please follow other related articles on the PHP Chinese website!