how to execute mysql script from command line code example Example: mysql execute command from command line mysql -u <user> -p -e "select * from schema.table"