【问题标题】:MariaDB mysqlslap not workingMariaDB mysqlslap 不工作
【发布时间】: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 命令。

标签: mysql mariadb


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-15
    • 2017-06-28
    • 2020-04-02
    • 2013-01-26
    • 2020-08-18
    相关资源
    最近更新 更多