Home >Backend Development >PHP Tutorial >Yii2 database migrates large amounts of data
Suppose I downloaded a database or a sql exported file from the Internet. How to use Yii2's DatabaseMigration to import data. Is it possible to use this solution?
Suppose I downloaded a database or a sql exported file from the Internet. How to use Yii2's DatabaseMigration to import data. Is it possible to use this solution?
You have downloaded the database, just use the db tool, such as navicat, to import it. You don’t need to use php anymore
If there is too much data, just give it to the SQL file directly. If you migrate it, it will definitely time out.