Created
February 17, 2019 07:45
-
-
Save D4R4/6beafe73530a10454c77a6e5fafd1b19 to your computer and use it in GitHub Desktop.
shell script to change MySQL root password
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
#!/bin/bash | |
mysql.server start | |
mysql -u root -e "SET PASSWORD FOR root@'localhost' = PASSWORD('admin');" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment