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

Yii2 database migrates large amounts of data

WBOY
Release: 2016-08-04 09:22:24
Original
1423 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template