Last active
December 29, 2015 06:19
-
-
Save apla/7627787 to your computer and use it in GitHub Desktop.
mysql create dba user
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE USER 'backupdb'@'localhost' IDENTIFIED BY '++++++++++++++++++++++++++++++++++'; | |
GRANT RELOAD ON *.* TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, DROP ON mysql.ibbackup_binlog_marker TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, DROP ON mysql.backup_progress TO 'backupdb'@'localhost'; | |
GRANT CREATE, INSERT, SELECT, DROP ON mysql.backup_history TO 'backupdb'@'localhost'; | |
GRANT REPLICATION CLIENT ON *.* TO 'backupdb'@'localhost'; | |
GRANT SELECT,LOCK TABLES ON *.* TO 'backupdb'@'localhost'; | |
GRANT SELECT,LOCK TABLES ON information_schema.* TO 'backupdb'@'localhost'; | |
GRANT SUPER ON *.* TO 'backupdb'@'localhost'; | |
GRANT CREATE TEMPORARY TABLES ON mysql.* TO 'backupdb'@'localhost'; | |
FLUSH PRIVILEGES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment