Execute sql files from terminal

on terminal

mysql -u [user] -p [-h host] [database] < /path/to/file.sql

on client

source /path/to/file.sql

or

\. /path/to/file.sql

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>