Answer the question
In order to leave comments, you need to log in
How to catch a traceback?
I start MySQL with parameters and when I exit I have a traceback instead of the usual "bye". When I try to save what is displayed to me (standard output and standard error output), I do not get anything in a file ...
(it looks something like this:
cat >mysqlquit <<EOF
quit
EOF
service mysql stop
service mysql start --параметры
mysql -uroot <./mysqlquit > result.txt 2>&1
echo $? >>result.txt
Answer the question
In order to leave comments, you need to log in
use 2>&1 BEFORE the redirect in result.txt, not after it :)
Even bettermysql -uroot <./mysqlquit &>result.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question