Автоматизируйте запрос MySQL CLI

#!/bin/bash
mysql -u root -psecret <<MY_QUERY
USE mysql
SHOW tables
MY_QUERY
Condemned Crane