Increase phpMyAdmin's upload limit

When restoring MySQL db, using phpMyAdmin is handy. But the file size for upload is limited to 8MB. Here's how to increase the limit.

1. Locate php.ini
http://localhost/phpinfo.php shows where's the php.ini.

2. Edit php.ini
upload_max_filesize
post_max_size
(optionally) memory_limit

3. Restart Apache
sudo apachectl restart