简体   繁体   English

java.sql.SQLException:在WSO Identity Server中拒绝用户'apiuser @ xxxx的访问

[英]java.sql.SQLException: Access denied for user 'apiuser@x.x.x.x in WSO Identity Server

I am configuring WSO2 Idenity server in AWS Cloud.I am installing WSO2 Identity server in EC2. 我在AWS Cloud中配置WSO2 Idenity服务器。在EC2中安装WSO2 Identity服务器。 I am using an AWS RDS MYSQL database and i have create apiuser in it.Its in different end point than in EC2. 我正在使用AWS RDS MYSQL数据库,并且在其中创建了apiuser。它的端点与EC2中的端点不同。 Also i changed master-datasources.xml to point to the RDS Server like below using the end point of RDS than localhost. 我也更改了master-datasources.xml使其指向RDS服务器,如下所示,使用的是RDS的端点而不是本地主机。

jdbc:mysql://myrdsendpoint:3306/apimgt?autoReconnect=true&relaxAutoCommit=true& apiuser apimanager jdbc:mysql:// myrdsendpoint:3306 / apimgt?autoReconnect = true&relaxAutoCommit = true&apiuser apimanager

I have changed at all places where apiuser is referred.. Still i am getting error like java.sql.SQLException: Access denied for user 'apiuser'@'ec2ip' (using password: YES) The apiuser is referred from the ec2ip.. 我在所有引用apiuser的地方都进行了更改。

Is there any other place which i should change to use apiuser from the RDS rather than EC2? 我还有其他地方需要更改以使用RDS而不是EC2中的apiuser吗?

I solved it by creating user who can be accessed from any machine.. 我通过创建可以从任何计算机访问的用户来解决它。

CREATE USER apiuser@'%' IDENTIFIED BY ' apimanager';

Its solved now.. 现在解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM