MariaDB mysqlslap 不工作

MariaDB mysqlslap not working

当我执行提供的示例 (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

问题是由于您尝试 运行 mariadb(MySQL)自己的命令中的 mysqlslap 命令行 工具引起的线客户端。 运行 mysqlslap 直接从命令行。