server/configs/nsenter_mysql.sh

4 lines
74 B
Bash
Executable File

#!/bin/sh
nsenter -t $(pgrep mysql | head -1) -m -u -i -n -p -- mysql $@