Fügen Sie das -B hinzu Flag zu 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.
Beachten Sie, dass -B /--batch aktiviert auch --silent wechseln.