I had problem when uploading 11 meg db file to phpmyadmin: mod_fcgid: read data timeout in 40 seconds
Solution that works for me (apache2, fast-cgi):
Modify php.ini proper to Your website:
upload_max_filesize = 20M
post_max_size = 22M
Post max size set bigger than upload_max_size. You can set higher values if You want.
Add this to /etc/apache2/mods-available/fcgid.conf