April 6, 2016 · Laravel
Import sql to your Laravel 5+ instance
The best way is use mysql native client.
//Login to your database
mysql -u USERNAME -pPASSWORD
//Set the packet size for large sql file import
mysql>SET GLOBAL max_allowed_packet=1073741824;
//Set database
mysql>use DATABASE;
//import sql file
mysql>source /etc/var/www/YOURFILE.SQL;
or you can use the latter.
http://stackoverflow.com/questions/21307464/can-i-import-a-mysql-dump-to-a-laravel-migration