Agregue el -B
marcar a 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.
Tenga en cuenta que -B
/--batch
también habilita el --silent
cambiar.