-e 옵션이 있었다니...


mysql.sh

#!/bin/bash


query="show databases"


mysql -u root -p(암호붙여서) -e "$query"


Posted by 마PD