To update root user privileges in mysql using workbench :
To update root user privileges in mysql using workbench :
1)connect the database using root user
2) Run the query to off the safe updates in workbench
3) Run the below query to update the user privileges in mysql database
update mysql.user set Select_priv='Y', Insert_priv='Y',Update_priv='Y',Delete_priv='Y',
Create_priv='Y',Drop_priv='Y',Reload_priv='Y',Shutdown_priv='Y',
Process_priv='Y',File_priv='Y',Grant_priv='Y',References_priv='Y',
Index_priv='Y',Alter_priv='Y',Show_db_priv='Y',Super_priv='Y',
Create_tmp_table_priv='Y',Lock_tables_priv='Y',Execute_priv='Y',
Repl_slave_priv='Y',Repl_client_priv='Y',Create_view_priv='Y',
Show_view_priv='Y',Create_routine_priv='Y',Alter_routine_priv='Y',
Create_user_priv='Y',Event_priv='Y',Trigger_priv='Y' where User='root';
4) Run the flush privileges query to update the changes;
flush privileges;
5)Restart the service once.