Created
February 14, 2023 02:06
-
-
Save oelbaga/fed237d3a2b38b2b0b2bd43286b86e12 to your computer and use it in GitHub Desktop.
Create MySQL user to access database from React/NextJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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