1
0
mirror of https://github.com/tommytran732/MariaDB-Root-Password-Reset synced 2024-11-08 04:41:34 -05:00

Update mariadb-103.sh

This commit is contained in:
TommyTran732 2020-07-10 19:56:23 -04:00 committed by GitHub
parent 4a0f604625
commit c0c63b62e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ output(){
} }
mariadb_root_reset(){ mariadb_root_reset(){
service mariadb stop service mysqld stop
mysqld_safe --skip-grant-tables >res 2>&1 & mysqld_safe --skip-grant-tables >res 2>&1 &
sleep 5 sleep 5
rootpassword=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` rootpassword=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1`