WordPress.org

Forums

error uploading backup database to new server (5 posts)

  1. dylan
    Member
    Posted 10 years ago #

    following the very easy instructions in the codex, i have managed to backup my wordpress database, however the file seems to be too big! I was hoping that someone could please help me figure out what to do about it. It won't upload. I am sad without my wordpress working.

    This is the error I get:
    Error

    There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

    ERROR: Unknown Punctuation String @ 5
    STR: />
    SQL:
    <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 268 bytes) in <b>/home/spyweb1/confixx/html/user/phpMyAdmin/libraries/export/sql.php</b> on line <b>513</b>

    SQL query:

    <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 268 bytes) in <b>...</b> on line <b>513</b>

    MySQL said: Documentation
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
    <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (trie' at line 1

  2. Lorelle
    Member
    Posted 10 years ago #

    Are you backing up manually or with the wordpress backup plugin? That will help us determine part of the problem.

    If you aren't using the plugin, I recommend you do so. It makes life so much easier.

    http://www.skippy.net/blog/category/wordpress/plugins/wp-db-backup/

  3. dylan
    Member
    Posted 10 years ago #

    Its too late to use the plugin now, I'm sorry to say. I'm working with a text file, a .sql file, and its all that remains of my databse.

    This is what I thought I would do:

    open the file in a text editor
    delete the tables that dont really need to be uploaded again
    (i forgot to exclude them from the backup)

    could anyone point me towards a regular expression (and a text editor) that will allow me to do this:

    "find any line that contains a certain string and delete that line"

    It would save me hours. Thanks.

  4. James Huff
    Volunteer Moderator
    Posted 10 years ago #

    Dylan, it looks like you're running into your host's upload maximum. If you contact your hosting provider, they would be happy to restore the database for you.

    If you want to manually restore the database, use a text editor from the following list and copy/paste the DB contents into phpmyadmin's "SQL" tab.

    http://codex.wordpress.org/Glossary#Text_editor

  5. dylan
    Member
    Posted 9 years ago #

    I ended up using a text editor to do the upload in parts. Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic