Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 13 of 13

This is a discussion on Restoring a large database? in the Shared & Semi-Dedicated forum
I have moved my site to my new server at JaguarPC. I am having some problems restoring my phpbb database however. According to the documentation ...

  1. #1
    JPC Member
    Join Date
    Jun 2004
    Location
    Midwest
    Posts
    3

    Restoring a large database?

    I have moved my site to my new server at JaguarPC. I am having some problems restoring my phpbb database however. According to the documentation I've read, I cannot upload a databse larger than 50 megs using phpmyadmin. I have also tried uploading the database through the phpbb - and I get an "action cancelled" message once it gets to about 50 Megs (I'm guessing it's around 50 megs where it dies... don't know for sure). My total database is about 120 Megs.

    So... it says I can change the max upload number in the /home/phpmyadmin/config.inc.php file on line 72 , but I can't for the life of me find this file anywhere.

    Now... first... is there an easier way to do this? Second, where can I find the config.inc.php file for phpmyadmin?

    Any help is appreciated.

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    I can't answer your question directly, though I know others here probably can help you with that.

    What I might suggest is loading the database manually from the command line in an SSH session.

    It might look something like

    mysql -u jagname_dbname -p < databasedumpfile.sql

    Then you'd type in your password, and it would be off and running.

    Not positive on the syntax, you might need to place the password inside the file on the first line. But maybe this will point you in a different direction that may work for you.

    Good luck.

  3. #3
    JPC Member
    Join Date
    Jun 2004
    Location
    Midwest
    Posts
    3
    Ron,

    Thanks for the quick reply, but that was way above my head. I'm very much a newbie at this. I am at the limits of my knowledge by looking through phpmyadmin to see if my database is there. I WAS able to upload my back-up database to the server, but for some reason, when I try to view it, I get a "tables not found" message.

    Could you give me a little more basic explanation of what I should do?

    Thanks

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    mysql -u [username] -p [database] < yourbackup.sql

    You will be prompted for [username]'s password.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Originally posted by 10-7
    Thanks for the quick reply, but that was way above my head. I'm very much a newbie at this....
    Hrm... well, in that case I would contact Tech Support, via the ticket system. Explain your situation.

    You can probably ZIP your db, and send it to them - or FTP it to your web space - and they will restore it for you. At least I'd give it a shot...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    Originally posted by Vin DSL
    mysql -u [username] -p [database] < yourbackup.sql

    You will be prompted for [username]'s password.
    It won't (mis)take [database] to be the pw? Cool. I would think it would need a "use <dbname>" inside the sql file.

    But that's just me. Never done it here.
    Last edited by Ron; 07-05-2004 at 09:58 PM.

  7. #7
    JasonM
    Guest
    Originally posted by Ron
    It won't (mis)take [database] to be the pw? Cool. I would think it would need a "use <dbname>" inside the sql file.

    But that's just me. Never done it here.
    That is the correct syntax Vin DSL posted. You don't need a 'use dbname' statement.

  8. #8
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    heres a helpful link. Learning about SSH was the best thing I've done

    http://jaguarpc.com/forums/showthrea...threadid=10949

  9. #9
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003

    Re: Restoring a large database?

    Originally posted by 10-7
    So... it says I can change the max upload number in the /home/phpmyadmin/config.inc.php file on line 72 , but I can't for the life of me find this file anywhere.
    If you are using the CPanel version of PHPMyAdmin, it is a server-wide install and you can't access its configuration files , so you won't be able to change that. HTTP was designed to handle downloading, however, not uploading. Browser-based uploading is kind of an afterthought and is terribly unreliable for anything bigger than a few megs.

    Upload your dump file to your account via FTP or SCP. Then log in with SSH and enter the command that Vin posted. That will give you the same result as what you are trying to accomplish via PHPMyAdmin.

    If you don't know how to do any of these things, just ask and I (or one of the other "resident experts") will help you out however we can.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  10. #10
    Jag Veteran
    Join Date
    Sep 2002
    Posts
    650
    Originally posted by Ron
    It won't (mis)take [database] to be the pw? Cool. I would think it would need a "use <dbname>" inside the sql file.
    Actually, if you forget to add space after "-p" mysql will treat it as a password

  11. #11
    Jag Veteran
    Join Date
    Sep 2002
    Posts
    650
    BTW, I don't think installing your own version of phpMyAdmin will help you much: in addition to limits set in phpMyAdmin's config file there are also server-wide limits in php.ini file that are not so easy to overcome.

  12. #12
    JPC Member
    Join Date
    Jun 2004
    Location
    Midwest
    Posts
    3
    I just wanted to update this and say that I got hold of tech support for this, and they were right on top of it.... they got the database restored for me in no time.

    I have made myself a pledge to spend some time learning more about my new server and how to take care of it. For now though... I can't stress enough how awesome the tech folks are around here. Thanks Jaguarpc!

  13. #13
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Heh! He's hooked...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •