export large database mysql phpmyadmin

前端 未结 6 1087
眼角桃花
眼角桃花 2020-12-17 17:35

I am using phpmyadmin on my windows os. I have a database with one table which has 100M records with the size of 20GB. I want to export this table and have the table.sql fil

相关标签:
6条回答
  • 2020-12-17 18:06

    If you have shared hosting and you are using GoDaddy Cpanel than they are providing you option to backup your database in following section.

    Files => Backup => Download a MySQL Database Backup.

    0 讨论(0)
  • 2020-12-17 18:09

    increase

    max_post_size

    variable in php.ini file. Then you will be able to download it.

    0 讨论(0)
  • 2020-12-17 18:10

    If you are on a shared hosting or you don't have access to shell, then use mysqldumper script; copy it to your server and start it in your browser under "yourDomain.com/path_to_mysqlumper/"

    MySQLDumper is a PHP and Perl based tool for backing up MySQL databases. You can easily dump your data into a backup file and - if needed - restore it. It is especially suited for shared hosting webspaces, where you don't have shell access.

    MySQLDumper is a PHP and Perl based tool for backing up MySQL databases. You can easily dump your data into a backup file and - if needed - restore it. It is especially suited for shared hosting webspaces, where you don't have shell access.

    If you have shell access to your host servers (if provided by your host since not all shared server hosters give this access) then you may use SSH access like in this tutorial using Putty that you install and configure then import or export your databases like in this third tutorial.

    0 讨论(0)
  • 2020-12-17 18:12

    I had a different issue when I was downloading from phpmyadmin in the middle like 180MB download stops with message - network error

    So I used ssh connection which you can find in your cpanel sometimes they provide browser based terminal or sometime you have to access it using putty .

    In terminal I go inside my public_html folder where all my files are stored . Followed by this command:

    mysqldump -u [username] -p [database-you-want-to-dump] > [path-to-place-data-dump.sql]
    

    This did the job in few minutes and saved a sql file in my public_html folder. Then I opened the folder in File manager and downloaded it from there.

    You can also use FTP or you can download it directory by accessing by url.

    Make sure you delete it after your download finishes.

    0 讨论(0)
  • 2020-12-17 18:14

    I would suggest to try using the command line and the mysqldump.exe utility, as suggested here

    0 讨论(0)
  • 2020-12-17 18:26

    MySQLDumper worked like a charm for me at my hosted website. I had to copy one database and "paste" it into a new database. In MySQLDumper, it isn't apparent right away how to do this, but the key is to create a new configuration file in MySQLDumper and that will allow you to copy/restore to different databases.

    On the home screen in MySQLDumper, click Configuration, then Configuration Files. There is a text box at the top allowing you to create a new Configuration file. In there, put in the information for the second database you need (you created a connection to the first database when you install MySQLDumper). Save it. Then you can click Restore where you can select the dump of the first database and restore it in the second one.

    This was a lifesaver. Thanks!

    0 讨论(0)
提交回复
热议问题