Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Import what data? From a database?

Last updated 2 years ago.
0

Post entries from a database.

Last updated 2 years ago.
0

What about an SQL export?

If you make a migration in advance, then you should be good to go.

Last updated 2 years ago.
0

I'm assuming you have access to SSH on both servers. To do this, first create migrations under your Laravel server which match the table columns. Migrate these migrations using php artisan migrate. Next, you want to go to your database server and export the whole database (assuming you want to import the whole database as is without modifications later) using mysqldump -uusername -ppassword database_name > outputfile.sql. Then, you want to go to Laravel and import it using mysql -uusername -ppassword outputfile.sql > database_name.

Last updated 2 years ago.
0

I have access to both databases, but old site is using Drupal and i want to transfer all db data in to laravel.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.