Skip to content

Instantly share code, notes, and snippets.

@oelbaga
Created February 14, 2023 02:06
Show Gist options
  • Save oelbaga/fed237d3a2b38b2b0b2bd43286b86e12 to your computer and use it in GitHub Desktop.
Save oelbaga/fed237d3a2b38b2b0b2bd43286b86e12 to your computer and use it in GitHub Desktop.
Create MySQL user to access database from React/NextJS
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
CREATE USER 'username'@'%' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'username'@'localhost';
GRANT ALL ON *.* TO 'username'@'%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment