上传数据库时,我在PhPMyAdmin上收到以下错误-我删除了关键的代码行吗?
-- phpMyAdmin SQL Dump
-- version 2.8.0.1
-- http://www.phpmyadmin.net
--
-- Host: custsql-ipg100.eigbox.net
-- Generation Time: Mar 16, 2015 at 05:46 PM
-- Server version: 5.5.40
-- PHP Version: 4.4.9
--
-- Database: `wrd_2macd1bm7n`
--
-- --------------------------------------------------------
--
-- Table structure for table `wp_commentmeta`
--
CREATE TABLE `wp_commentmeta` (
`meta_id` BIGINT( 20 ) UNSIGNED NOT NULL AUTO_INCREMENT ,
`comment_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0',
`meta_key` VARCHAR( 255 ) DEFAULT NULL ,
`meta_value` LONGTEXT,
PRIMARY KEY ( `meta_id` ) ,
KEY `comment_id` ( `comment_id` ) ,
KEY `meta_key` ( `meta_key` )
) ENGINE = MYISAM DEFAULT CHARSET = utf8 AUTO_INCREMENT =1;
这是错误消息:
#1064-您的SQL语法出现错误;查看与MySQL服务器版本相对应的手册,了解在附近使用的正确语法
创建表
wp_commentmeta
(第1行处的meta_id
bigint(20)unsigned NOT NULL A'
此错误的最可能原因是上一条语句中缺少分号。也就是说,MySQL对CREATE TABLE
的出现犹豫不决,因为它将其视为之前未终止的语句的延续(部分)。