Mega Code Archive
Categories
/
MySQL
/
Command Mysql
To run multiple queries with the -e option, separate them with semicolons
% mysql -e "SELECT COUNT(*) FROM yourTable;SELECT NOW( )" databaseName