Skip to content

Instantly share code, notes, and snippets.

@apla
Last active December 29, 2015 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apla/7627787 to your computer and use it in GitHub Desktop.
Save apla/7627787 to your computer and use it in GitHub Desktop.
mysql create dba user
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