mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
Cat mysql log if sandbox fails to start.
This commit is contained in:
@@ -45,14 +45,16 @@ make_sandbox() {
|
|||||||
# Start the sandbox and check that it has InnoDB.
|
# Start the sandbox and check that it has InnoDB.
|
||||||
/tmp/$port/start
|
/tmp/$port/start
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
/tmp/$port/use -e 'show /*!40100 engine*/ innodb status' | grep 'INNODB MONITOR OUTPUT' >/dev/null 2>&1
|
/tmp/$port/use -e 'SHOW /*!40100 ENGINE*/ INNODB STATUS' | grep 'INNODB MONITOR OUTPUT' >/dev/null 2>&1
|
||||||
# grep exits 0 if lines are found
|
# grep exits 0 if lines are found
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "****** WARNING sandbox doesn't have a working InnoDB! ******"
|
echo "****** WARNING sandbox doesn't have a working InnoDB! ******"
|
||||||
|
cat /tmp/$port/data/mysqld.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Sandbox $type $port failed to start."
|
echo "Sandbox $type $port failed to start."
|
||||||
|
cat /tmp/$port/data/mysqld.log
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user