0
Q:

grant all privileges mysql

GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
13
/*
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';
7
GRANT ALL PRIVILEGES ON `db_name`.* TO 'user'@'host'
1
/*
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
*/
6
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
3
GRANT ALL ON *.* TO 'user'@'localhost';

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

New to Communities?

Join the community