The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Export Huge Database?

Discussion in 'Database Discussions' started by DubCity, Jun 11, 2016.

  1. DubCity

    DubCity Registered

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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 .
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    319
    Likes Received:
    23
    Trophy Points:
    18
    Location:
    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.
     
  3. DubCity

    DubCity Registered

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    portland
    cPanel Access Level:
    Website Owner
    is that the only way ?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  5. DubCity

    DubCity Registered

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    portland
    cPanel Access Level:
    Website Owner
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    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.
     
  7. DubCity

    DubCity Registered

    Joined:
    Jun 11, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    portland
    cPanel Access Level:
    Website Owner
    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.
     
  8. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    This will save to the directory you're in.
    You can then use FTP to login (or SFTP if you're using root) and download the DB to your PC.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page