corselia
1/20/2018 - 1:50 AM

MySQL SQL execution by one liner

MySQL SQL execution by one liner

#!/bin/bash

mysql -h 127.0.0.1 -P 12345 -uroot -ppassword table_name < sample.sql