(source) To show one users privilges in mysql:
SHOW GRANTS FOR 'luser'@'localhost';
To list current users grants:
SHOW GRANTS;
Show all users:
select user,password,host from mysql.user;
Smokes your problems, coughs fresh air.
(source) To show one users privilges in mysql:
SHOW GRANTS FOR 'luser'@'localhost';
To list current users grants:
SHOW GRANTS;
Show all users:
select user,password,host from mysql.user;
I often need to make a MySQL database and a user that can do anything in it:
create database bla character set utf8 collate = utf8_general_ci; use bla grant all on bla.* to 'jack'@'localhost' identified by 'password';
To drop a user:
drop user ‘jack'@'localhost’;
© 2024 BigSmoke
Theme by Anders Noren — Up ↑
Recent Comments