mysql 172.17.0.1_java - java.sql.SQLException:Guacamole Docker中用户'guacamole'@'172.17.0.4'的访问被拒绝 - 堆栈...

新手在使用Docker部署Guacamole和MySQL时遇到身份验证错误。MySQL警告未启用SSL连接验证,并提示权限问题,'guacamole'用户无法访问数据库。检查了guacamole.properties文件,配置包括主机名、端口、数据库信息等,但访问权限错误依然存在。
摘要由CSDN通过智能技术生成

我是guacamole和docker的新手。 我正在使用mysql进行身份验证。

我正在尝试的命令将在下面提到

docker run --name some-guacd -d guacamole/guacd

docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=root -d mysql:latest

docker run --name some-guacamole --link some-guacd:guacd --link some-mysql:mysql -e MYSQL_DATABASE=guacamole -e MYSQL_USER=guacamole -e MYSQL_PASSWORD=some_password -e MYSQL_ROOT_PASSWORD=root -v /local/path:/etc/guacamole -e GUACAMOLE_HOME=/etc/guacamole -d -p 8080:8080 guacamole/guacamole

但我得到以下提供的例外。

Fri Mar 22 07:59:36 UTC 2019 WARN: Establishing SSL connection without

server's identity verification is not recommended. According to MySQL

5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established

by default if explicit option isn't set. For compliance with existing

applications not using SSL the verifyServerCertificate property is set to

'false'. You need either to explicitly disable SSL by setting useSSL=false,

or set useSSL=true and provide truststore for server certificate

verification.

Fri Mar 22 07:59:36 UTC 2019 WARN: Establishing SSL connection without

server's identity verification is not recommended. According to MySQL

5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established

by default if explicit option isn't set. For compliance with existing

applications not using SSL the verifyServerCertificate property is set to

'false'. You need either to explicitly disable SSL by setting useSSL=false,

or set useSSL=true and provide truststore for server certificate

verification.

07:59:36.126 [http-nio-8080-exec-7] ERROR o.a.g.rest.RESTExceptionMapper -

Unexpected internal error:

### Error querying database. Cause: java.sql.SQLException: Access denied

for user 'guacamole'@'172.17.0.4' (using password: YES)

### The error may exist in

org/apache/guacamole/auth/jdbc/user/UserMapper.xml

### The error may involve

org.apache.guacamole.auth.jdbc.user.UserMapper.selectOne

### The error occurred while executing a query

### Cause: java.sql.SQLException: Access denied for user

'guacamole'@'172.17.0.4' (using password: YES)

还有我的guacamole.properties

guacd-hostname:localhost

guacd-port:4822

lib-directory:/var/lib/guacamole/classpath

#basic-user-mapping:/etc/guacamole/user-mapping.xml

#auth-provider:

net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvide

auth-

provider:net.sourceforge.guacamole.net.auth.mysql

.MySQLAuthenticationProvider

mysql-hostname:127.0.0.1

mysql-port:3306

mysql-database:guacamole

mysql-username:guacamole

mysql-password:some_password

我不确定我在哪里做错了?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值