mysql manage shell script