export large database mysql phpmyadmin











up vote
11
down vote

favorite
2












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 file. Whenever I try to do this, the size of the exported file is 0 bytes. When I check the apache error log, the following would show up:



Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1066139648 bytes)


Any idea how to solve this problem?!



Thanks :)










share|improve this question




























    up vote
    11
    down vote

    favorite
    2












    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 file. Whenever I try to do this, the size of the exported file is 0 bytes. When I check the apache error log, the following would show up:



    Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1066139648 bytes)


    Any idea how to solve this problem?!



    Thanks :)










    share|improve this question


























      up vote
      11
      down vote

      favorite
      2









      up vote
      11
      down vote

      favorite
      2






      2





      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 file. Whenever I try to do this, the size of the exported file is 0 bytes. When I check the apache error log, the following would show up:



      Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1066139648 bytes)


      Any idea how to solve this problem?!



      Thanks :)










      share|improve this question















      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 file. Whenever I try to do this, the size of the exported file is 0 bytes. When I check the apache error log, the following would show up:



      Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1066139648 bytes)


      Any idea how to solve this problem?!



      Thanks :)







      mysql phpmyadmin fatal-error






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jun 27 '16 at 14:57

























      asked Nov 17 '13 at 8:50









      ahajib

      2,57794078




      2,57794078
























          5 Answers
          5






          active

          oldest

          votes

















          up vote
          12
          down vote



          accepted










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






          share|improve this answer

















          • 1




            Thanks for your answer. That's what I did to solve my problem.
            – ahajib
            Nov 17 '13 at 22:02










          • you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
            – user2196728
            Nov 17 '13 at 22:39


















          up vote
          11
          down vote













          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.






          share|improve this answer






























            up vote
            9
            down vote













            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.






            share|improve this answer

















            • 1




              easy solution, works fine on name.com hosting.
              – Wajdy Essam
              Dec 27 '15 at 23:27


















            up vote
            1
            down vote













            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!






            share|improve this answer




























              up vote
              0
              down vote













              increase




              max_post_size




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






              share|improve this answer





















              • I tried it & its working like charm for me
                – Jitendra Pawar
                Oct 16 '15 at 7:02











              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20028898%2fexport-large-database-mysql-phpmyadmin%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              12
              down vote



              accepted










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






              share|improve this answer

















              • 1




                Thanks for your answer. That's what I did to solve my problem.
                – ahajib
                Nov 17 '13 at 22:02










              • you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
                – user2196728
                Nov 17 '13 at 22:39















              up vote
              12
              down vote



              accepted










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






              share|improve this answer

















              • 1




                Thanks for your answer. That's what I did to solve my problem.
                – ahajib
                Nov 17 '13 at 22:02










              • you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
                – user2196728
                Nov 17 '13 at 22:39













              up vote
              12
              down vote



              accepted







              up vote
              12
              down vote



              accepted






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






              share|improve this answer












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







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 17 '13 at 13:07









              user2196728

              1,94021014




              1,94021014








              • 1




                Thanks for your answer. That's what I did to solve my problem.
                – ahajib
                Nov 17 '13 at 22:02










              • you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
                – user2196728
                Nov 17 '13 at 22:39














              • 1




                Thanks for your answer. That's what I did to solve my problem.
                – ahajib
                Nov 17 '13 at 22:02










              • you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
                – user2196728
                Nov 17 '13 at 22:39








              1




              1




              Thanks for your answer. That's what I did to solve my problem.
              – ahajib
              Nov 17 '13 at 22:02




              Thanks for your answer. That's what I did to solve my problem.
              – ahajib
              Nov 17 '13 at 22:02












              you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
              – user2196728
              Nov 17 '13 at 22:39




              you're welcome, i'm happy to help ! phpmyadmin is a usefull tool ans makes many things simpler to administrate a Mysql DB, but it has its limitations... Cheers
              – user2196728
              Nov 17 '13 at 22:39












              up vote
              11
              down vote













              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.






              share|improve this answer



























                up vote
                11
                down vote













                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.






                share|improve this answer

























                  up vote
                  11
                  down vote










                  up vote
                  11
                  down vote









                  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.






                  share|improve this answer














                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jan 5 '14 at 20:42

























                  answered Jan 5 '14 at 14:59









                  numediaweb

                  8,59685077




                  8,59685077






















                      up vote
                      9
                      down vote













                      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.






                      share|improve this answer

















                      • 1




                        easy solution, works fine on name.com hosting.
                        – Wajdy Essam
                        Dec 27 '15 at 23:27















                      up vote
                      9
                      down vote













                      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.






                      share|improve this answer

















                      • 1




                        easy solution, works fine on name.com hosting.
                        – Wajdy Essam
                        Dec 27 '15 at 23:27













                      up vote
                      9
                      down vote










                      up vote
                      9
                      down vote









                      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.






                      share|improve this answer












                      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.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 29 '15 at 8:40









                      Indrasinh Bihola

                      1,79731722




                      1,79731722








                      • 1




                        easy solution, works fine on name.com hosting.
                        – Wajdy Essam
                        Dec 27 '15 at 23:27














                      • 1




                        easy solution, works fine on name.com hosting.
                        – Wajdy Essam
                        Dec 27 '15 at 23:27








                      1




                      1




                      easy solution, works fine on name.com hosting.
                      – Wajdy Essam
                      Dec 27 '15 at 23:27




                      easy solution, works fine on name.com hosting.
                      – Wajdy Essam
                      Dec 27 '15 at 23:27










                      up vote
                      1
                      down vote













                      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!






                      share|improve this answer

























                        up vote
                        1
                        down vote













                        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!






                        share|improve this answer























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          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!






                          share|improve this answer












                          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!







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Apr 22 '14 at 18:08









                          tom

                          111




                          111






















                              up vote
                              0
                              down vote













                              increase




                              max_post_size




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






                              share|improve this answer





















                              • I tried it & its working like charm for me
                                – Jitendra Pawar
                                Oct 16 '15 at 7:02















                              up vote
                              0
                              down vote













                              increase




                              max_post_size




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






                              share|improve this answer





















                              • I tried it & its working like charm for me
                                – Jitendra Pawar
                                Oct 16 '15 at 7:02













                              up vote
                              0
                              down vote










                              up vote
                              0
                              down vote









                              increase




                              max_post_size




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






                              share|improve this answer












                              increase




                              max_post_size




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







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 16 '15 at 5:29









                              Jitendra Pawar

                              6711017




                              6711017












                              • I tried it & its working like charm for me
                                – Jitendra Pawar
                                Oct 16 '15 at 7:02


















                              • I tried it & its working like charm for me
                                – Jitendra Pawar
                                Oct 16 '15 at 7:02
















                              I tried it & its working like charm for me
                              – Jitendra Pawar
                              Oct 16 '15 at 7:02




                              I tried it & its working like charm for me
                              – Jitendra Pawar
                              Oct 16 '15 at 7:02


















                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f20028898%2fexport-large-database-mysql-phpmyadmin%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Xamarin.iOS Cant Deploy on Iphone

                              Glorious Revolution

                              Dulmage-Mendelsohn matrix decomposition in Python