Skip to content

Instantly share code, notes, and snippets.

@soham2008xyz
Created April 22, 2024 14:52
Show Gist options
  • Save soham2008xyz/70af22ce1d6f7a41d15a654db769efd6 to your computer and use it in GitHub Desktop.
Save soham2008xyz/70af22ce1d6f7a41d15a654db769efd6 to your computer and use it in GitHub Desktop.
Grant all privileges to root user (on MySQL 8)
CREATE USER 'root'@'%' IDENTIFIED BY 'secret';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment