mysql grant all privileges to a user
GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
mysql grant all privileges to a user
GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';
mysql users and privileges list
SELECT * FROM mysql.user;
SELECT * FROM information_schema.user_privileges;
SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user;
SHOW GRANTS FOR 'my_user'@'localhost';
grant all privileges mysql
/*
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';
how to know mysql user privileges on a given database?
SHOW GRANTS FOR 'user_name';
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us