I am trying it implement the solution but having trouble succeeding.
When installing the Report Manager I am getting errors at the stage of Database Connection Test.
Environment
Dx NetOps 24.3.x
Resolution
Database Connection Test Failed
Error Information: Unable to open database connection: (jdbc:mysql://oc_host:3306/reporting?useUnicode=true&characterEncoding=UTF-8&useSSL=false with SRM_user3) Access denied for user 'SRM_user'@'reportmanager.company.internal' to database 'reporting'
It is usually caused by the wrong password or wrong user grands
Reset password: mysql> ALTER user ‘SRM_user’@’reportmanager.company.internal’ IDENTIFIED BY ‘password’;
Verify correct grands and fix following the TechDocs if needed: mysql> SHOW grants for 'SRM_user'@'reportmanager.company.internal';
Error Information: Unable to open database connection: (jdbc:mysql://oc_host:3306/reporting?useUnicode=true&characterEncoding=UTF-8&useSSL=false with SRM_user) Public Key Retrieval is not allowed
It is usually caused by the wrong host value provided when creating the SRM_user
Test the connection from Report Manager host to Spectrum One Click host:
sudo yum install -y mysql
mysql -h <OneClick_IP> -u SRM_user -p Enter password: ERROR 1045 (28000): Access denied for user 'SRM_user'@'reportmanager.company.internal' (using password: YES)
This value visible after 'SRM_user'@ needs to be used when creating the user.
Check created users:
mysql> SELECT user, host FROM mysql.user;
Fix user definition as required:
mysql> DROP user 'SRM_user'@'reportmanager';
mysql> CREATE user 'SRM_user'@'reportmanager.company.internal' IDENTIFIED BY ‘password';