From http://habrahabr.ru/post/105954/ - put dump in database by console
mysql -u USER -pPASSWORD DATABASE < /path/to/dump.sql