org.mule.runtime.api.connection.ConnectionException - mysql

Part of Mule 4 training I am trying to connect MySQL database and getting error...
org.mule.runtime.api.connection.ConnectionException: Could not obtain connection from data source
org.mule.runtime.api.connection.ConnectionException: Could not obtain connection from data source
Caused by: org.mule.extension.db.api.exception.connection.ConnectionCreationException: Could not obtain connection from data source
Caused by: java.sql.SQLException: Cannot get connection for URL jdbc:mysql://mudb.learn.mulesoft.com:3306/training?logger=org.mule.extension.db.api.logger.MuleMySqlLogger$$EnhancerByCGLIB$$42140f7b : Access denied for user 'mule'#'cpe-104-139-120-137.carolina.res.rr.com' (using password: YES)
Caused by: java.sql.SQLException: Cannot get connection for URL jdbc:mysql://mudb.learn.mulesoft.com:3306/training?logger=org.mule.extension.db.api.logger.MuleMySqlLogger$$EnhancerByCGLIB$$42140f7b : Access denied for user 'mule'#'cpe-104-139-120-137.carolina.res.rr.com' (using password: YES)
enter image description here
let me know what else I need to change for a successful connection.

The root error is:
Access denied for user 'mule'#'cpe-104-139-120-137.carolina.res.rr.com'
It looks like nothing is wrong in the Mule application. You need to fix the password or the permissions for that user in the MySql database.
This article can be helpful to troubleshoot that.

Related

MySqlException (0x80004005): : Access denied for user

Hello I'm having troubles connecting to my database, via my website.
When i open a page, which tries to acces my database i get an error page saying
[MySqlException (0x80004005): Access denied for user 'UserName'#'IP' (using password: YES)]
I am useing a azure server and database, and is trying to connect using my admin user.
This is the connection string am useing
Database={DatabaseName}; Data Source=ServerName.mysql.database.azure.com; User
Id=UserName#ServerName; Password={UserPassword}
The user is set to Host = %
and should have all of the necesary administrative roles.
Removed the braces around database and password, and it worked.
Can't even remeber why i had put them there.

Monitoring : Centreon - How to connect centreon user to database?

I'm running Centreon Entreprise Server (CES) 3.3 and added NagVis (1.8.x). They are on a virtual machine (Virtualbox).
When I suceeded in giving the rights to NagVis to reach my Centreon data, Centreon started displaying : "Database error: Could not connect to database", though the centreon user has all privileges on "centreon" and "centreon_storage".
Here's my central-broker-master.log :
[1467987167] error: storage: rebuilder: could not connect to Centreon Storage database: could not open database: Access denied for user 'centreon'#'localhost' (using password: YES) QMYSQL: Unable to connect
[1467988484] error: TCP: error while sending data to peer 'localhost:5670': The remote host closed the connection
[1467988492] config: module applier: loading directory '/usr/share/centreon/lib/centreon-broker'
[1467988492] config: correlation: invalid correlation configuration, correlation engine is NOT loaded
[1467988492] config: applier: 14 modules loaded
[1467988492] error: could not open database: Access denied for user 'centreon'#'localhost' (using password: YES) QMYSQL: Unable to connect
[1467988492] error: TCP: could not connect to localhost:5670: Connection refused
[1467988492] error: could not open database: Access denied for user 'centreon'#'localhost' (using password: YES) QMYSQL: Unable to connect
(the last error is written hundreds of times ...)
And I couldn't find other errors in different logs. (Or wasn't able to find the right logs ...)
The 'centreon' user has the rights on the databases with the IP address of my server as well as with my coputer's address. (This could have been a matter of rights from a distant location)
I don't know any other way to grant my 'centreon' user with extra rights on the database -- Is it even a valid idea to grant my user with all privileges ?
Thanks
EDIT : I tried to solve the problem by using this post : MySQL ERROR 1045 (28000): Access denied for user 'bill'#'localhost' (using password: YES) (I actually had a ''#'localhost' user), but my access to Centreon web is still denied.

Database Connection Failed - Error

I need help with sorting out this error. We purchased a website through sites and stores and just states "Upload your website files provided". I have done this directly into our CPanel and this is the error i have received:
Database Connection Failed
Error: Access denied for user 'healthinsurancea'#'localhost' (using password: YES) (1045)
Function Performed: CONNECT
Host/DB: localhost/healthinsurancea_db
Database Type: mysqli
Fatal error: Attempt to connect to database healthinsurancea_db on healthinsurancea#localhost failed in /home/healthin/public_html/lib/adodb.functions.php on line 61
Database Connection Failed
Error: Access denied for user 'healthinsurancea'#'localhost' (using password: YES) (1045)
Function Performed: CONNECT
Host/DB: localhost/healthinsurancea_db
Database Type: mysqli
Fatal error: Attempt to connect to database healthinsurancea_db on healthinsurancea#localhost failed in /home/healthin/public_html/lib/adodb.functions.php on line 61
Please inform me how to resolve this... Thanks
CPanel has an option, maybe with name 'remote database' or something similar. You should add your IP to this list where you tried to connect to it from.

Cloud SQL database failed to connect from mysql client

I'm unable to connect to Google Cloud SQL from my desktop mysql client. I am also unable to set the sql instance password in google console. It says "instance is busy". I was able to connect to the sql instance using this same command line few weeks ago. Now it's unclear why it is not allowing the same. I see a similar question being asked before but it does not have any resolution.
c:\mysql --host=xxx.xxx.253.xx --user=root --password
ERROR 1045 (28000): Access denied for user 'root'#'xxx.xxx.214.xxx' (using password: NO)
The reason I'm trying to connect from the command line is that my access to the same DB from GAE is also failing with the same error as below.
com.xxx store: java.sql.SQLException: Access denied for user 'root'#'localhost' (using password: YES)
This is the first time I'm trying to access the database from a GAE app. Any idea why the mysql client is not connecting and where I should look to troubleshoot?
Edit:
mysql client connection issue is resolved by upgrading to a newer mysql version (5.6.19). The GAE connection issue persists.
The jdbc url I use is
"jdbc:google:mysql://projid:sqlinstance/dbname?user=root&password=root"
The GAE connection issue was resolved by removing the password from the URL. The new jdbc
url is "jdbc:google:mysql://projid:sqlinstance/dbname?user=root".

BIRT 4.3.2 on Tomcat 7.0.53 on windows 8.1 64 bit gives error 'Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc. '

I have been working on creating report using BIRT with MySql. While I am able to run the report successfully using BIRT viewer, when I try to integrate with tomcat, it gives the below error
org.eclipse.birt.report.engine.api.EngineException: An exception
occurred during processing. Please see the following message for
details: Cannot open the connection for the driver:
org.eclipse.birt.report.data.oda.jdbc.
org.eclipse.birt.report.data.oda.jdbc.JDBCException: Failed to get
connection. SQL error #1:Access denied for user 'root'#'localhost'
(using password: NO) ; java.sql.SQLException: Access denied for user
'root'#'localhost' (using password: NO)
Can anyone please help?
the error message indicates that you do not have permissions to loging to MySQL database using root without any password. As far as I remember, default password for root is 'sa' in MySQL. Please check whether you need any password for your database.