From bb100b6bf2707fa5df4707207bb79181d3aad4bd Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 8 Oct 2023 00:42:54 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index c0b7621fe..60311d03e 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -372,11 +372,11 @@ mw_connect_mysql(){ fi if [ "$CHOICE_DB" == "mariadb" ];then - ${ROOT_PATH}/mariadb/bin/mysql -uroot -p"${pwd}" + ${ROOT_PATH}/mariadb/bin/mariadb -S ${ROOT_PATH}/mariadb/mysql.sock -uroot -p"${pwd}" fi if [ "$CHOICE_DB" == "mysql-apt" ];then - ${ROOT_PATH}/mysql-apt/bin/usr/bin/mysql -uroot -p"${pwd}" + ${ROOT_PATH}/mysql-apt/bin/usr/bin/mysql -S ${ROOT_PATH}/mysql-apt/mysql.sock -uroot -p"${pwd}" fi }