imgotop
注册会员

UID 80935
精华
0
积分 190
帖子 124
金钱 190 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2006-10-3 来自 福建
状态 离线
|
导入mysql数据库时为什么会出错?
我从本地数据库中倒出mysql的数据
再导入网上的数据库时出现下面的错误提示:
错误
SQL 查询:
-- phpMyAdmin SQL Dump
-- version 2.7.0-pl2
-- http://www.phpmyadmin.net
--
-- 主机: localhost
-- 生成日期: 2007 年 05 月 08 日 00:42
-- 服务器版本: 5.1.6
-- PHP 版本: 5.1.2
--
-- 数据库: `dd`
--
-- --------------------------------------------------------
--
-- 表的结构 `categories`
--
CREATE TABLE IF NOT EXISTS `categories` (
`cat_id` bigint( 20 ) NOT NULL AUTO_INCREMENT ,
`cat_name` varchar( 55 ) NOT NULL default '',
`cat_description` longtext NOT NULL ,
PRIMARY KEY ( `cat_id` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8 PACK_KEYS =0 AUTO_INCREMENT =2;
MySQL 返回:
#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 'ENGINE=InnoDB DEFAULT CHARSET=utf8 PACK_KEYS=0 AUTO_INCREMENT=2
|  小 黄 |
|