0

I have a complete mysql database that I need to shift to laravel's database. How can I do that ?

I have so far created a migration for the database - Into this db I want to put data, which is huge. I'm not using homestead env. I'm using artisan serve for locally running the application.

I have referenced: Can I import a mysql dump to a laravel migration?

I have referenced this link and it did not solve my problem, data did not migrate. I need help to migrate data into the DB created.

tried using:- DB::unprepared(File::get('full/path/to/dump.sql')); din work out.

Community
  • 1
  • 1
s_user
  • 586
  • 2
  • 8
  • 19

0 Answers0