#!/bin/bash
# Not working on windows symlinks
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"

GENERAL_LOG_FILE_PATH="${DIR}/log/mariadb/mariadb.log"

sudo truncate -s 0 $GENERAL_LOG_FILE_PATH

clear

sudo tail -f $GENERAL_LOG_FILE_PATH | grep -Ev "(Close|Prepare)"