Do not restore the Custom Avatars table until last, as it stores large amounts of data, and can make your queries stop working, also use a script called bigdump
http://www.ozerov.de/bigdump.php to import it to prevent memory overloads when trying to import large databases, as phpMyAdmin is limited by how much memory that PHP can use. This imports only a little at time and then moves on, making memory overloads rarely happen.
Anyway I hope this helps