Command
mysql -h IP -u Username -p schema < file
Example
mysql -h 192.168.10.122 -u root -p mydatabase < /tmp/20160628_test_minificated.sql
Does it take many hours to recover so many databases?
Depends on dump file size and connection speed.
Is it possible to restore an 8 GB database?
Yes, that way you can restore large databases.
Am I doing the right thing?
For me, this is the best way when you work with the command line interface and the destination is also the command line interface.
Is there any other better way to restore a database?
Yes, you have several options, such as phpmyadmin, workbrench, heidisql and many others, but each has its own limitations.
Ferri source share