Title: Problems Restoring Database
Last modified: August 18, 2016

---

# Problems Restoring Database

 *  [joshspazjosh](https://wordpress.org/support/users/joshspazjosh/)
 * (@joshspazjosh)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/)
 * 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)

 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284335)
 * 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.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284338)
 * 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.
 * [http://www.jujusoft.com/software/edit/](http://www.jujusoft.com/software/edit/)
   (
   It’s free)
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284345)
 * 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](https://wordpress.org/support/users/joshspazjosh/)
 * (@joshspazjosh)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284348)
 * Did what the first poster said; didn’t work. Sorry.
 * There aren’t any additional error messages, though. . .
 * EDIT: I’ll try the rest.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284353)
 * Work from a COPY of the sql file !
 *  Thread Starter [joshspazjosh](https://wordpress.org/support/users/joshspazjosh/)
 * (@joshspazjosh)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284358)
 * 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.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284359)
 * Ã¯Â»Â¿# WordPress MySQL databas
 * See the first 3 characters ? Shoot’em 🙂
 *  Thread Starter [joshspazjosh](https://wordpress.org/support/users/joshspazjosh/)
 * (@joshspazjosh)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284362)
 * Uh. . .didn’t work?

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problems Restoring Database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [joshspazjosh](https://wordpress.org/support/users/joshspazjosh/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/problems-restoring-database/#post-284362)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
