当我执行提供的示例(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发布于 2016-09-16 13:17:09
造成此问题的原因是您试图在mariadb(MySQL)自己的命令行客户端中运行mysqlslap 命令行工具。直接从命令行运行mysqlslap。
https://stackoverflow.com/questions/39531674
复制相似问题