I used this command mysqldump -u root -p etl_db > ~/backup.sql
to get the backup data.
Now I want to import into a new remote MySQL database. I saw there are 2 ways to do it. https://dev.mysql.com/doc/refman/8.0/en/mysql-batch-commands.html
I wonder which one would be faster?
shell> mysql < dump.sql
or
mysql> source dump.sql
?
I saw some people says that source
is for small data but there are others say that it's good for large data. I couldn't find much documentation.
Thanks!