Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add super privileges to mysql database?

Tags:

mysql

I am trying to execute query in mysql.

SET GLOBAL log_bin_trust_function_creators =1;  

Error:

SQL query:
SET GLOBAL log_bin_trust_function_creators =1
MySQL said:
#1227 - Access denied; you need the SUPER privilege for this operation

I want to know that how do i assign SUPER privileges to any database

like image 900
Manish Malviya Avatar asked Aug 14 '12 04:08

Manish Malviya


People also ask

What are super privileges in MySQL?

MySQL super Privilege is a GRANT statement that provides permissible privileges that allows a user account to make administrative changes and execute different operations in the database table.

How do I grant alter privileges in MySQL?

You can't currently change a user's privileges in the control panel, so to do so you need to use a command-line MySQL client like mysql . After you create a user in the cluster, connect to the cluster as doadmin or another admin user.


1 Answers

You can add super privilege using phpmyadmin:

Go to PHPMYADMIN > privileges > Edit User > Under Administrator tab Click SUPER. > Go

If you want to do it through Console, do like this:

 mysql> GRANT SUPER ON *.* TO user@'localhost' IDENTIFIED BY 'password'; 

After executing above code, end it with:

mysql> FLUSH PRIVILEGES; 

You should do in on *.* because SUPER is not the privilege that applies just to one database, it's global.

like image 58
Akash KC Avatar answered Sep 22 '22 16:09

Akash KC