MariaDB mysqlslap无法正常工作

时间:2016-09-16 12:34:19

标签: mysql mariadb

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

1 个答案:

答案 0 :(得分:1)

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