digifactory / laravel-pull-production-data

Pull your production storage folder and database to your local environment
MIT License
10 stars 3 forks source link

importDatabaseBackup() Can't handle large sql files #5

Closed m-bosch closed 5 years ago

m-bosch commented 5 years ago

While testing with several project we noticed that importing the sql through Laravel is slow and breaks for large SQL files.

I suggest we make (perhaps optional) the import on command-line level with something like:

exec(mysql ......... < database.sql)