0
コマンドラインでSQLを実行中にエラーが発生しました。何が問題ですか?構文は間違っていないように見えます。何をすればよいでしょうか?MySQL create tableコマンドが発生しましたERROR 1064(42000)
[[email protected] bin]# mysql -u dubbom -D dubbomonitor -p -t </tmp/create.sql
Enter password:
ERROR 1064 (42000) at line 3: 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 'USING BTREE,
KEY `index_method` (`method`) USING BTREE,
KEY `index_invoke_da' at line 17
[[email protected] bin]# cat /tmp/create.sql
use dubbomonitor;
DROP TABLE IF EXISTS `dubbo_invoke`;
CREATE TABLE `dubbo_invoke` (
`id` varchar(255) NOT NULL DEFAULT '',
`invoke_date` date NOT NULL,
`service` varchar(255) DEFAULT NULL,
`method` varchar(255) DEFAULT NULL,
`consumer` varchar(255) DEFAULT NULL,
`provider` varchar(255) DEFAULT NULL,
`type` varchar(255) DEFAULT '',
`invoke_time` bigint(20) DEFAULT NULL,
`success` int(11) DEFAULT NULL,
`failure` int(11) DEFAULT NULL,
`elapsed` int(11) DEFAULT NULL,
`concurrent` int(11) DEFAULT NULL,
`max_elapsed` int(11) DEFAULT NULL,
`max_concurrent` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_service` (`service`) USING BTREE,
KEY `index_method` (`method`) USING BTREE,
KEY `index_invoke_date` (`invoke_date`) USING BTREE,
KEY `index_invoke_time` (`invoke_time`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
あなたはどのバージョンのmysqlを使用していますか? –
私の同僚がMySQL 5.1をインストールしました、私は問題が何であるか知っています、ありがとう。 – Tan
@Tan何が問題だったのですか?あなたは答えとして投稿することができます – jophab