From 57ede258ab53ae61f7cdc68e9c1401c2f160525d Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 21 Aug 2020 10:20:20 +0200 Subject: [PATCH] optimize_mysql_tables.sh: check also socket path '/run/mysqld/mysqld.sock'. --- optimize_mysql_tables.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/optimize_mysql_tables.sh b/optimize_mysql_tables.sh index bdc4a18..64c5cf4 100755 --- a/optimize_mysql_tables.sh +++ b/optimize_mysql_tables.sh @@ -275,6 +275,8 @@ if [[ -z "$mysql_credential_args" ]]; then || ( [[ $MAJOR_VERSION -eq 10 ]] && [[ $MINOR_VERSION -gt 3 ]] )) ; then if [[ -S "/tmp/mysql.sock" ]]; then mysql_credential_args="-u root -S /tmp/mysql.sock" + elif [[ -S "/run/mysqld/mysqld.sock" ]]; then + mysql_credential_args="-u root -S /run/mysqld/mysqld.sock" elif [[ -S "/var/run/mysqld/mysqld.sock" ]]; then mysql_credential_args="-u root -S /var/run/mysqld/mysqld.sock" else