Display note that the MySQL connect error isn't an actual problem

The:

| ERROR 2002 (HY000): Can't connect to local MySQL server through socket ...

gets displayed several times, though it's not an issue.
Seems to be some async foo or race condition I couldn't identify
yet, until it's resolved display a message to the user so nobody
thinks that's a real error.

From: Michael Prokop <mprokop@sipwise.com>
ksolomko/vlan
Michael Prokop 14 years ago
parent 16a3423fbe
commit ad7e8c47ef

@ -1257,10 +1257,13 @@ upload_db_dump() {
# mysqldump writes errors to stdout, muhaha...
if ! grep -q 'Dump completed on' /dump.db ; then
echo "Error: invalid data inside database dump."
echo "Error: invalid data inside database dump." >&2
exit 1
fi
echo "NOTE: you can safely IGNORE the message stating:"
echo " ERROR 2002 (HY000): Can't connect to local MySQL server through socket ..."
echo " listed above. If you're seeing this note here everything went fine."
upload_file "/dump.db"
}

Loading…
Cancel
Save