Phpmyadmin import sql_db.zip error

The command line is by far sadly the best method.

As for the phpmyadmin 504 error. Hit reload once or twice. Sometimes it finishes the task.