【发布时间】:2017-10-27 16:47:01
【问题描述】:
在新的 KNIME 工作流程中。我创建了一个新的数据库连接节点和一个新的 Database Writer 节点,它接受来自 CSV 读取器节点的数据。 数据库连接节点执行成功。 当我执行数据库写入器节点时,我收到 CREATE command is denied 错误。
Database connector节点的配置如下:
数据库 URL : jdbc:mysql://localhost:3306/hello_knime_database
用户名 : test
密码:测试
mysql 配置:
$ mysql -u test -p
mysql> show databases;
+----------------------+
| Database |
+----------------------+
| information_schema |
| hello_knime_database |
+----------------------+
2 rows in set (0.00 sec)
mysql> show grants;
+--------------------------------------------------------------------------
-------------------+
| Grants for test@localhost
|
+--------------------------------------------------------------------------
-------------------+
| GRANT USAGE ON *.* TO 'test'@'localhost'
|
| GRANT ALL PRIVILEGES ON `hello_knime_database`.* TO 'test'@'localhost'
|
| GRANT ALL PRIVILEGES ON `hello_knime_database`.`hello_knime_database` TO
'test'@'localhost' |
+--------------------------------------------------------------------------
-------------------+
3 rows in set (0.01 sec)
数据库写入器配置:
端口 1 输入:大约 32000 行 15 列的数据表。
端口 2 输入:数据库连接器
表名:你好
KNIME 版本:3.3.2
当我执行 Database Writer 节点时,我得到:
ERROR Database Writer 0:3 Execute failed: CREATE command denied to user 'test'@'localhost' for table 'hello'
有什么线索可以说明造成这种情况的原因吗?
【问题讨论】:
-
通过将数据库名称附加为前缀来添加完全限定的表名称,例如:
hello_knime_database.hello无效。