Home >Backend Development >PHP Tutorial >Yii2 database migrates large amounts of data

Yii2 database migrates large amounts of data

WBOY
WBOYOriginal
2016-08-04 09:22:241417browse

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?

Reply content:

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn