• Used Skippy’s plugin from the Codex, tried to restore with phpmyadmin, got this message:
    ——–

    Error
    SQL query:

    #
    # Table structure of table wp_categories
    #
    CREATE TABLE wp_categories (

    cat_ID bigint( 20 ) NOT NULL AUTO_INCREMENT ,
    cat_name varchar( 55 ) COLLATE latin1_general_ci NOT NULL default ”,
    category_nicename varchar( 200 ) COLLATE latin1_general_ci NOT NULL default ”,
    category_description longtext COLLATE latin1_general_ci NOT NULL ,
    category_parent int( 4 ) NOT NULL default ‘0’,
    PRIMARY KEY ( cat_ID ) ,
    KEY category_nicename ( category_nicename )
    ) ENGINE = MYISAM DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci
    MySQL said:

    #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 ‘collate latin1_general_ci NOT NULL default ”,
    `category_nice

    ——-

    Can anyone help?

Viewing 8 replies - 1 through 8 (of 8 total)
  • From past experience, you need to delete DEFAULT CHARSET = latin1 COLLATE = latin1_general_ci. At least that’s what I’ve always had to do.

    Open the .sql file and do the search/replace for the string vkaryl has pointed out. just replace it with nothing.

    If the .sql file is large enough to stress your computer and you use windows, grab a copy of JuJuedit to do the job.

    https://www.jujusoft.com/software/edit/
    (It’s free)

    Yah, and actually, you’re going to have to find and replace a couple of things: the string I posted first as well as COLLATE latin1_general_ci NOT NULL – and maybe others. Sometimes you need the original db to compare to, because this sort of thing can get to be a RIGHT BITCH.

    I can guarantee you one thing: by the time you’ve whipped the database into shape and it’s all copacetic again, you will have a decent working knowledge of MySQL databases!

    Thread Starter joshspazjosh

    (@joshspazjosh)

    Did what the first poster said; didn’t work. Sorry.

    There aren’t any additional error messages, though. . .

    EDIT: I’ll try the rest.

    Work from a COPY of the sql file !

    Thread Starter joshspazjosh

    (@joshspazjosh)

    New Error Message:

    Error
    There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:
    —-BEGIN CUT—-
    eNqlkMFSwjAURff5ijsDSxqbQhGzQ6jITIXaVHQnKc1AtbQ1qQrf5sJP8hcMjCvdSRZv8XLfO/e+
    II7nMceIYeQhDGYcDB56nk9EYvsfhIwWgqM9zTjMS1FLbZSmRZ7SelN33uDRbo961A65rn/m9s+6
    Llif+wPOGAq1vUCwq9EmN3txG3L0qEs93zGNLDOpM3InYsxFB8NJMEs6WASWeZ+XmAboU5dEN0Nu
    EX3adeqCkeg6Okg6c3HY1KUWEebl646Ew9mEQ5VObipnMPAvHEaOvK+PzxbuK51FWhmDowtkspGp
    NAqpXD2/1qRFWpioUmnZKBvzSueZ3IMNKGbVm9qmSh/T2cJtHYnE6q8r05Ryq+y9vHMbyqXMdsc/
    mzmWT5XZmFo+pkW1Xtov55/vtNFEpsXBzXv9uLLp1pXOlTnJDjmea6wK1SjIcg+1y02Tl2s0B9Zf
    FCHjeB4hGV6GAaZXCB6mIhG/dd9lLqd+
    —-END CUT—-
    —-BEGIN RAW—-

    ERROR: C1 C2 LEN: 1 2 425
    STR: ??

    CVS: $Id: sqlparser.lib.php,v 2.34.2.1 2005/06/30 16:58:11 lem9 Exp $
    MySQL: 4.0.25-standard
    USR OS, AGENT, VER: Win IE 6.0
    PMA: 2.6.3-pl1
    PHP VER,OS: 4.3.11 Linux
    LANG: en-iso-8859-1
    SQL: ?ˉ????# WordPress MySQL database backup
    #
    # Generated: Friday 18. November 2005 20:05 CST
    # Hostname: 127.0.0.1
    # Database: joshspa_blog
    # ——————————————————–
    # ——————————————————–
    # Table: wp_categories
    # ——————————————————–

    #
    # Delete any existing table wp_categories
    #

    DROP TABLE IF EXISTS wp_categories
    —-END RAW—-
    SQL query:

    ?ˉ????# WordPress MySQL database backup # # Generated: Friday 18. November 2005 20:05 CST # Hostname: 127.0.0.1 # Database: joshspa_blog # ——————————————————– # ——————————————————– # Table: wp_categories # ——————————————————– # # Delete any existing table wp_categories # DROP TABLE IF EXISTS wp_categories
    MySQL said:

    #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 ‘?ˉ????# WordPress MySQL database backup
    #
    # Generated: Friday 18.

    —–

    I have an infinite amount of database copies.

    ?ˉ????# WordPress MySQL databas

    See the first 3 characters ? Shoot’em ??

    Thread Starter joshspazjosh

    (@joshspazjosh)

    Uh. . .didn’t work?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problems Restoring Database’ is closed to new replies.