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

3 篇文章 0 订阅
2 篇文章 0 订阅

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就会报错。原因就是这么简单而无厘头。


评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值