您的位置:首页 > 数据库 > MySQL

大牛初步之kettle连接mysql的奇葩错误: message from server: "Host 'PCXX‘ is not allowed to connect to this MySQL s

2014-08-01 15:00 931 查看
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就会报错。原因就是这么简单而无厘头。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐