Go to an existing database in phpMyAdmin. Click Export at the top. Leave the settings as they are, click the "Save as file" checkbox and click Go. This will download a .sql file to your computer.