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';
grant revoke privileges to mysql username
#in SQL execute
#GRANT type_of_permission ON database_name.table_name TO 'username'@'localhost';
GRANT ALL PRIVILEGES ON * . * TO 'username'@'localhost';
#reload all the privileges
FLUSH PRIVILEGES;
#Show Privileges
SHOW GRANTS FOR 'username'@'localhost';
#Revoke Privileges
REVOKE type_of_permission ON database_name.table_name FROM 'username'@'localhost';
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