Skip to content

Instantly share code, notes, and snippets.

@oliworx
Created February 10, 2016 09:16
Show Gist options
  • Save oliworx/862c4484e936beb777de to your computer and use it in GitHub Desktop.
Save oliworx/862c4484e936beb777de to your computer and use it in GitHub Desktop.
Create MySQL user to backup databases
CREATE USER 'dbbackup'@'localhost' IDENTIFIED BY '***';
GRANT SELECT ,
RELOAD ,
FILE ,
SUPER ,
LOCK TABLES ,
SHOW VIEW ON * . * TO 'dbbackup'@'localhost' IDENTIFIED BY '***'
WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment