Private GIT

Skip to content
Snippets Groups Projects
Commit 8922f102 authored by Christophe WEILAND's avatar Christophe WEILAND Committed by Kev
Browse files

[FIX] ERROR: Can't find MySQL datadir (#5484)

parent d5a512f9
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,10 @@ output_log() { ...@@ -82,6 +82,10 @@ output_log() {
### ###
if [ -n "$process" ] ; then if [ -n "$process" ] ; then
datadir=$(echo "$process" | awk '{ for (i = 1; i < NF; i++) { if (match($i, "--datadir")) { print $i } } }' | awk -F\= '{ print $2 }') datadir=$(echo "$process" | awk '{ for (i = 1; i < NF; i++) { if (match($i, "--datadir")) { print $i } } }' | awk -F\= '{ print $2 }')
### New version CentOS7/MariaDB : datadir not present in ps
if [ -z "$datadir" ] ; then
datadir=$(mysqld --verbose --help 2> /dev/null | egrep "^datadir" | awk -F' ' '{print $2}')
fi
started=1 started=1
fi fi
if [ -z "$datadir" ] ; then if [ -z "$datadir" ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment