Skip to content

Instantly share code, notes, and snippets.

@drscream
Created November 20, 2015 17:01
Show Gist options
  • Save drscream/bb6059ef2701f1977ddc to your computer and use it in GitHub Desktop.
Save drscream/bb6059ef2701f1977ddc to your computer and use it in GitHub Desktop.
QB_US=qb-$(zonename | awk -F\- '{ print $5 }');
QB_PW=$(mdata-get mysql_qb_pw)
echo "GRANT LOCK TABLES,SELECT,RELOAD,SUPER,REPLICATION CLIENT on *.* to '${QB_US}'@'localhost' identified by '${QB_PW}'; FLUSH PRIVILEGES;" | mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment