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

关于mysql - MariaDB mysqlslap无法正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39531674/

10-11 03:33