Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pass="grep -i password /etc/mysql/debian.cnf | awk '{print $3}'"
- mysql -u root -poz8c53645mv3095c2 -e "GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '$pass';"
- mysql -u root -poz8c53645mv3095c2 -e "UPDATE mysql.user SET Password=PASSWORD('$pass') WHERE User='debian-sys-maint';"
- mysql -u root -poz8c53645mv3095c2 -e "FLUSH PRIVILEGES;"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement