Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default Trying to restore large mySQL database

    Hello,

    We are trying to restore a very large database from a backup drive on one of our servers (the database is around 3GB). We run the command:

    mysql databasename < /path/to/backup/database.sql

    but after the database gets around 1500MB loaded in we get a software error "Software caused connection abort." What is causing this? Is their a limit set somewhere?

    Also now phpMyAdmin is giving us this error when we try and access it:

    Warning: session_write_close() [function.session-write-close]: write failed: No space left on device (28) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 44

    Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 44

    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php:44) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 101

    Any help PLEASE!

    THANKS!
    TheHostRack.com
    The LOWEST Prices and BEST plans in web hosting today!

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    This should work:

    mysql -u username_username -p username_databasename < /path/to/backup/database.sql

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default

    That still doesn't stop the software error...
    TheHostRack.com
    The LOWEST Prices and BEST plans in web hosting today!

  4. #4
    Member
    Join Date
    Jun 2005
    Posts
    70

    Default

    your TMP dir is full. empty it. See the last response in this thread - http://forums.cpanel.net/showthread.php?t=69255

    Quote Originally Posted by thehostrack View Post
    Also now phpMyAdmin is giving us this error when we try and access it:

    Warning: session_write_close() [function.session-write-close]: write failed: No space left on device (28) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 44

    Warning: session_write_close() [function.session-write-close]: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 44

    Warning: Cannot modify header information - headers already sent by (output started at /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php:44) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 101

    Any help PLEASE!

    THANKS!
    Last edited by encryption; 08-01-2007 at 12:36 PM.

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default

    I finally got the command to run but once the database loads around 1700MB in the entire server goes CRAZY. Is this because the tmp directory is filling up? If I reboot the server everything returns to normal,but my database has not bee restored.

    Please advise anyone!

    THANKS!!
    TheHostRack.com
    The LOWEST Prices and BEST plans in web hosting today!

Similar Threads & Tags
Similar threads

  1. Trouble importing large MySQL database
    By taylordouglas in forum Data Protection
    Replies: 0
    Last Post: 05-17-2010, 03:46 AM
  2. Large Mysql restore file - timeout
    By jeroman8 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 05-05-2008, 12:36 PM
  3. Importing large MYSQL database
    By greenchicken in forum Database Discussions
    Replies: 3
    Last Post: 04-26-2006, 08:41 PM
  4. Large MySQL Database
    By wills in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-20-2005, 08:38 AM
  5. Large MySQL Database
    By xcensus in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-17-2003, 07:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube