automate mysql cli query
snippet in sql

automate mysql cli query

user9105

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