Skip to content

Instantly share code, notes, and snippets.

@paveltretyakovru
Created October 6, 2019 16:16
Show Gist options
  • Save paveltretyakovru/1e96c60576a8287e634d784ac0801254 to your computer and use it in GitHub Desktop.
Save paveltretyakovru/1e96c60576a8287e634d784ac0801254 to your computer and use it in GitHub Desktop.
Create user with root privilegies
# mysql -u root -p
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'some_very_complex_password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment