How To Export Huge Database?

DubCity

Registered
Jun 11, 2016
4
0
1
portland
cPanel Access Level
Website Owner
Hello I Am trying to download my 1.5 GIG database

but it keeps stopping after 360 mb how do i download the full database?

p.s i have my own dedicated server so i can edit files if needed .
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

If you have root access then you can create database backup in .sql file format from command line an download it through ftp.
 

Infopro

Well-Known Member
May 20, 2003
17,091
516
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
My apologies, I failed to notice your profile listing you as Website owner.

That command requires access via SSH which you most likely wouldn't have access to. It backs up the database:
mysqldump database_name > database.sql

And creates a zip file of the database so that it can be downloaded:
zip database.zip database.sql

How exactly are you attempting to backup your database? Try this:
cPanel > Files section > Backup > scroll down the page to this section:
Download a MySQL Database Backup
Click the Database you want to download.

If that's failing, it might be your connection to the server having an issue, a browser issue, or server having some sort of issue. In that case you'd want to contact your Hosting Provider and explain the situation to them.

You could also try forcing a Full Website Backup, that tool's on the same page where you tried to download the Database.

If you can force a backup from this tool, once its created you should be able to download that, from that same page it would be listed there once its fully created.

Downloading that would be faster and will contain a full backup of your database. It should anyway.

If you're unable to download that Full Website backup, Something else is going on, probably connection to the server related.
 

DubCity

Registered
Jun 11, 2016
4
0
1
portland
cPanel Access Level
Website Owner
My apologies, I failed to notice your profile listing you as Website owner.

That command requires access via SSH which you most likely wouldn't have access to. It backs up the database:
mysqldump database_name > database.sql

And creates a zip file of the database so that it can be downloaded:
zip database.zip database.sql

How exactly are you attempting to backup your database? Try this:
cPanel > Files section > Backup > scroll down the page to this section:
Download a MySQL Database Backup
Click the Database you want to download.

If that's failing, it might be your connection to the server having an issue, a browser issue, or server having some sort of issue. In that case you'd want to contact your Hosting Provider and explain the situation to them.

You could also try forcing a Full Website Backup, that tool's on the same page where you tried to download the Database.

If you can force a backup from this tool, once its created you should be able to download that, from that same page it would be listed there once its fully created.

Downloading that would be faster and will contain a full backup of your database. It should anyway.

If you're unable to download that Full Website backup, Something else is going on, probably connection to the server related.
I do have access to my root and my whom cpanel

I tried the method you linked me too and it said 90% deflated
But where does it save it too? Is what I don't understand.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
I tried the method you linked me too and it said 90% deflated
But where does it save it too? Is what I don't understand.
Hello,

This is in-reference to the following commands:

Code:
mysqldump database_name >  database.sql
zip database.zip database.sql
In this case, the database.zip file exists in the directory you ran the command. You can define a location if you prefer. EX:

Code:
mysqldump database_name >  /root/database.sql
zip /root/database.zip /root/database.sql
Thank you.