If you encounter the error “No data was received to import” while using phpMyAdmin, it usually means that the file upload failed or PHP settings are limiting the import. Here’s how to fix it.
Ensure that your import file is not larger than the maximum upload size allowed by your PHP configuration.
php.ini
for these settings:upload_max_filesize
(e.g., 64M)post_max_size
(e.g., 128M)apache2
, nginx
, etc.)If your import takes too long, the server might time out before the file is fully uploaded.
max_execution_time
and max_input_time
in php.ini
.Some browser versions (especially older ones) can cause incomplete uploads. Try using another browser like Chrome or Firefox.
If the web interface continues to fail, try importing via the command line:
mysql -u username -p database_name < backup.sql
phpMyBackupPro is a lightweight, web-based backup and restore tool that may avoid such issues by providing compressed and scheduled export options. Visit the official site to learn more.
Issue | Fix |
---|---|
File too large | Increase upload_max_filesize and post_max_size |
Timeout | Raise max_execution_time |
Browser issue | Try another browser (e.g., Chrome) |
Persistent failure | Use CLI or phpMyBackupPro instead |
If none of the above works, consider asking for help on a tech forum or check your server logs for more details.