Initial import
This commit is contained in:
6
DOC/README.save-grants
Normal file
6
DOC/README.save-grants
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
## - ----------------------------------------------------------------
|
||||
## - Datenbank User und deren Rechte auslesen
|
||||
## - ----------------------------------------------------------------
|
||||
mysql -uroot -pbuz111 mysql --skip-column-name -A -e"SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user WHERE user<>'';" | mysql -uroot -pbuz111 mysql --skip-column-name -A | sed 's/$/;/g' > ~/mysql-grants.sql
|
||||
|
Reference in New Issue
Block a user