grant all privileges mysql
snippet in sql

mysql grant all privileges to a user

user8760

GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';

grant all privileges mysql

user8087

/*
The GRANT statement is used to assign full control over specific database by providing all priviledge.
Follow below statement for assign priviledge to user
*/

Syntax: 
GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';

mysql user permission database

user6495

GRANT ALL PRIVILEGES ON `db_name`.* TO 'user'@'host'

grant all priviledges to mysql user

user6060

/*
The GRANT statement is used to assign full control over specific database by providing all priviledge.
Follow below statement for assign priviledge to user
*/

Syntax: 
GRANT ALL PRIVILEGES ON mydb.* TO 'myuser'@'%' WITH GRANT OPTION;

/*
I hope it will help you.
Namaste
*/

mysql grant grant option

user2549

GRANT ALL ON *.* TO 'user'@'localhost';

GRANT GRANT OPTION ON *.* TO 'user'@'localhost';

how to add privilege in mysql user

user8254

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';