1. Run mysql
2. execute source <sql_file>:
mysql> source /home/sqlskripts/mydata.sql