Browse Source

* use mariadb-dump

* filter tailing mariadb general log
master
dimti 1 year ago
parent
commit
767aa7ba37
  1. 2
      bash/dump.sh
  2. 2
      bash/tail-db-general-log.sh

2
bash/dump.sh

@ -6,4 +6,4 @@ if [[ -z "${CONTAINER}" ]]; then
exit 1 exit 1
fi fi
docker exec -ti ${CONTAINER} mysqldump -u root -p123456 $1 | pv > $2
docker exec -ti ${CONTAINER} mariadb-dump -u root -p123456 $1

2
bash/tail-db-general-log.sh

@ -7,4 +7,4 @@ sudo truncate -s 0 $GENERAL_LOG_FILE_PATH
clear clear
sudo tail -f $GENERAL_LOG_FILE_PATH
sudo tail -f $GENERAL_LOG_FILE_PATH | grep -Ev "(Close|Prepare)"
Loading…
Cancel
Save