Skip to main content

How To Export Huge Database?

Comments

8 comments

  • SysSachin
    Hello, If you have root access then you can create database backup in .sql file format from command line an download it through ftp.
    0
  • DubCity
    is that the only way ?
    0
  • Infopro
    This way is best: Export Large Database zip
    0
  • DubCity
    This way is best: Export Large Database zip

    what exactly does this do ?
    0
  • Infopro
    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.
    0
  • DubCity
    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.
    0
  • twhiting9275
    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.
    0
  • cPanelMichael
    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:
    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:
    mysqldump database_name > /root/database.sql zip /root/database.zip /root/database.sql
    Thank you.
    0

Please sign in to leave a comment.