Answer the question
In order to leave comments, you need to log in
How to import sql dumps into database using Yii2?
Hello,
after importing data from xls files to a local database, I need to transfer all the data to the server. Please explain how you can import a sql dump with these yii2 tools.
Thanks to all!
Answer the question
In order to leave comments, you need to log in
Why do this with Yii? In my opinion, this is easier to do using MySQL.
For example, like this:
mysql -u USER -pPASSWORD DATABASE < /path/to/dump.sql
That's right, thanks, I'm familiar with these methods. But what if I want to wrap the import of the dump into a base migration, and later, when developing the project, create migrations and roll them on the server over this one?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question