kettle连接mysql数据库时,出现以下报错:
错误连接数据库 [d] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database
Error connecting to database: (using class org.gjt.mm.mysql.Driver)
null, message from server: "Host 'PC77' is not allowed to connect to this MySQL server"
org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database。
一般情况下,数据库连接时候的主机名字可以有以下几种写法:一是你的计算机名,比如说我的就是PC77;一是localhost,一种是127.0.0.1,另外一种就是你的ip地址。
但是这时候kettle连接mysql的时候,只能用后面三种,你写PC77就会报错。原因就是这么简单而无厘头。