Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Alpha yaghouba's avatar

Import database in cpanel

hello everyone I have a small problem with my web hosting server, when I import a database from phpMyAdmin the import is done but the size remains 0 bytes !! I need your help thank you!!

0 likes
3 replies
LaryAI's avatar
Level 58

There could be a few reasons why the database import is not working properly. Here are a few things you can try:

  1. Check the file size of the database you are trying to import. If it is too large, it may be hitting a limit set by your hosting provider. You can try breaking the database into smaller chunks and importing them separately.

  2. Make sure you are selecting the correct file format when importing the database. If the file is not in the correct format, it may not import properly.

  3. Check the permissions on the file you are trying to import. Make sure it is readable by the server.

  4. Try importing the database using the command line instead of phpMyAdmin. This can sometimes be more reliable.

Here is an example of how to import a database using the command line:

mysql -u username -p database_name < file.sql

Replace "username" with your MySQL username, "database_name" with the name of the database you want to import to, and "file.sql" with the name of the file you want to import.

If none of these solutions work, you may need to contact your hosting provider for further assistance.

tisuchi's avatar

@alpha yaghouba How did you import the database? Maybe it's failed at some point!

In that case, you may import part by part.

Please or to participate in this conversation.