从pw8转dzx2时发生了个奇怪的事件,就是转换开始居然提示:
XConvert info: MySQL Query Error
Time: 2012-2-26 11:05pm
SQL: CREATE TABLE 18vipdz.pre_xreports (
rid int(10) unsigned NOT NULL AUTO_INCREMENT,
step tinyint(2) unsigned NOT NULL DEFAULT ‘0’,
errnum mediumint(8) unsigned NOT NULL DEFAULT ‘0’,
message mediumtext NOT NULL DEFAULT ”,
PRIMARY KEY (rid),
KEY step (step)
) TYPE=MyISAM AUTO_INCREMENT=100;
Error: 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 ‘TYPE=MyISAM AUTO_INCREMENT=100’ at line 8
Errormsg.: 可能原因:1.数据超长或类型不匹配;2.数据库记录重复
Errno.: 1064
然后用提示的语句去mysql创建,居然无法成功,看来看去发现语句这样是无法执行的,正确的是:
CREATE TABLE pre_xreports (
rid int(10) unsigned NOT NULL AUTO_INCREMENT,
step tinyint(2) unsigned NOT NULL DEFAULT ‘0’,
errnum mediumint(8) unsigned NOT NULL DEFAULT ‘0’,
message mediumtext NOT NULL DEFAULT ”,
PRIMARY KEY (rid),
KEY step (step)
) ENGINE=MyISAM AUTO_INCREMENT=100;
故障排除,继续转换。