Last active
October 12, 2020 10:55
-
-
Save sarpavci/b304d79a30d7d1df478b3bb03daf1242 to your computer and use it in GitHub Desktop.
Mysql create homestead user
This file contains hidden or 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 'homestead'@'localhost' IDENTIFIED WITH mysql_native_password BY 'secret'; | |
| GRANT ALL PRIVILEGES ON * . * TO 'homestead'@'localhost'; | |
| FLUSH PRIVILEGES; | |
| -- Show user grants | |
| -- SHOW GRANTS username; | |
| -- Revoke permissions | |
| -- REVOKE ALL PRIVILEGES ON * . * TO 'homestead'@'localhost'; | |
| -- Drop user | |
| -- DROP USER ‘homestead’@‘localhost’; | |
| -- ALTER USER 'homestead'@'localhost' IDENTIFIED WITH mysql_native_password BY 'secret'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment