Tambahkan -B
tandai ke mysql
.
mysql -B -u username -ppassword \
--disable-column-names \
--execute "select name from mydb.test"
-B, --batch: Print results in nontabular output format.
--execute: Execute the statement and quit.
Perhatikan bahwa -B
/--batch
juga mengaktifkan --silent
beralih.