Just to complete the answer - on Ubuntu/Mint you can just run:
zcat /usr/share/doc/phpmyadmin/examples/create_tables.sql.gz | mysql
(of course this assumes development environment where your default mysql user is root and you use no password; in other case use | mysql -uuser_name -p
)