From 3fa463119a0b34e987b88202dd691122187e8c8f Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Sat, 25 Jul 2020 20:05:55 -0400 Subject: [PATCH] Update mariadb-103.sh --- mariadb-103.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mariadb-103.sh b/mariadb-103.sh index 3974a92..7b9f325 100644 --- a/mariadb-103.sh +++ b/mariadb-103.sh @@ -3,7 +3,7 @@ output(){ } mariadb_root_reset(){ - service mysqld stop + service mysql stop mysqld_safe --skip-grant-tables >res 2>&1 & sleep 5 rootpassword=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` @@ -13,7 +13,7 @@ mariadb_root_reset(){ SQL="${Q1}${Q2}${Q3}" mysql mysql -e "$SQL" pkill mysqld - service mysqld restart + service mysql restart output "Your MariaDB root password is $rootpassword" }