DEV Community

Cover image for PHPMyAdmin import database timeout | Import SQL using command line/Terminal
Arman Rahman
Arman Rahman

Posted on

PHPMyAdmin import database timeout | Import SQL using command line/Terminal

This problem might happen if the database is really big or if the internet connection is slow.

Just so you know, PHPMyAdmin doesn't pay attention to the timeout or memory settings in cPanel. It gets its rules from the regular timeout on the server, which is set in WHM.

Sometime it can happen on your local pc. so you can follow this steps-

Attention: If a particular cPanel doesn't come with a Terminal, then this won't work on it.

  1. If we have shell/terminal access, we log in to the cpanel user account and run or in your local pc:
mysql -u username -p
Enter fullscreen mode Exit fullscreen mode

Note: If you are using localhost use root on username

In the prompt we enter the password then run the command:

Note: If you are using localhost then just hit enter only. [by default localhost do not have password. if you set any password then use that.]

Then enter your database:

mysql> use database_name;
Enter fullscreen mode Exit fullscreen mode

Then we import the database sql with the correct path:

source /our/path/to/backup.sql;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

ACI image

ACI.dev: The Only MCP Server Your AI Agents Need

ACI.dev’s open-source tool-use platform and Unified MCP Server turns 600+ functions into two simple MCP tools on one server—search and execute. Comes with multi-tenant auth and natural-language permission scopes. 100% open-source under Apache 2.0.

Star our GitHub!

👋 Kindness is contagious

Dive into this insightful write-up, celebrated within the collaborative DEV Community. Developers at any stage are invited to contribute and elevate our shared skills.

A simple "thank you" can boost someone’s spirits—leave your kudos in the comments!

On DEV, exchanging ideas fuels progress and deepens our connections. If this post helped you, a brief note of thanks goes a long way.

Okay