【发布时间】:2016-09-16 12:34:19
【问题描述】:
当我执行提供的示例 (https://mariadb.com/kb/en/mariadb/mysqlslap/#examples) 时,它失败并出现以下错误。知道为什么吗?
mysql> mysqlslap
-> --delimiter=";"
-> --create="CREATE TABLE t (a int);INSERT INTO t VALUES (5)"
-> --query="SELECT * FROM t"
-> --concurrency=40
-> --iterations=100
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysqlslap
--delimiter=";"
--create="CREATE TABLE t (a int);INSERT INTO t VAL' at line 1
【问题讨论】:
-
我认为您不应该在命令行客户端中启动此实用程序。这是要从命令行(但不是从客户端)运行的外部应用程序。
-
@Shadow 你可以把它作为答案。它是一个命令行工具。不是 sql 命令。