I'm trying to install Jasper Server CE 6.2 by following steps specified in JasperReports-Server-CP-Install-Guide.pdf file (3.2 Installing the WAR File Using js-install Scripts)
After updating default_master.properties, when I try test run using js-install-ce.bat test command, then I'm getting below error (extracted from log)
Error Details
do-install-upgrade-test:
[echo] Checking DBMS host and port:
[echo] About to validate port: mysql-db.company.com:3306
[echo] Port 3306 is OK
[echo] Done validating port: mysql-db.company.com:3306
[echo] Validating administrative database connection at jdbc:mysql://mysql-db.company.com:3306/mysql. Phase: [test]
[echo] For JDBC driver the artifactId and version properties are set:
[echo] maven.jdbc.artifactId=mariadb-java-client
[echo] maven.jdbc.version=1.1.2
[echo] Specified JDBC driver jar exists
[advanced-sql] Failed to connect: Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql'
[echo] Connection failed:
[echo] SQLState: HY0000
[echo] Vendor specific error code: -1
[echo] Message: [Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql']
BUILD FAILED
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:495: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:376: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\conf_source\db\mysql\db.xml:65: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:434: The following error occurred while executing this line:
E:\Software-Downloads\jasperreports-server-cp-6.2.0-bin\jasperreports-server-cp-6.2.0-bin\buildomatic\bin\validation.xml:470: Database doesn't exist. Treating problem with JDBC connection as unrecoverable
DB Details from default_master.properties file
# database type
dbType=mysql
# database location and connection settings
dbHost=mysql-db.company.com
dbUsername=jasper_admin
dbPassword=jasper_admin_password
# additional database parameters
# (uncomment these if you want non-default settings)
dbPort=3306
# JasperServer db name, sample db names
js.dbName=jasper
# sugarcrm.dbName=sugarcrm
# foodmart.dbName=foodmart
Note: User jasper_admin already exists in DB and this connection is tested successfully. Database jasper exists as-well.
I can't connect as root access! Please suggest me if there is any work-around.
Thanks a ton in advance for your help.
[update] In error log, I can see below error
Could not connect: Access denied for user 'jasper_admin'#'%' to database 'mysql'
but where I can see what code Jasper build scripts are using to verify this? because, I can connect to MySQL DB using same user via MySQL Client.
Issue was with MySQL user "jasper_admin". This user should have access to internal database mysql. Best case is try installing Jasper using MySQL "root" user.
Related
I am using the MyXQL driver with Ecto in Phoenix, and am trying to connect to an already existing MySQL database running on a Debian 11 server.
I can access the server normally using mysql -p, and can access it through Express (which is what I was using before I started migrating to Phoenix / Elixir).
When I try to run:
{ :ok, pid } = MyXQL.start_link([ username: "{username}", password: "{password}" ])
I get an error that reads:
[error] MyXQL.Connection (#PID<0.449.0>) failed to connect: ** (DBConnection.ConnectionError) (/tmp/mysql.sock) no such file or directory - :enoent
I understand that this means it can't find a /tmp/mysql.sock socket, however I cannot figure out how to fix this error, or why it even is an error, considering ExpressJS can access the server (using the npm package mysql).
I got below error while try to migrate database from Mysql enterprise version 8.0.23-commercial even I grant all REPLICATION CLIENT, REPLICATION SLAVE to migration user I still got this error and also turn on binlog
[SOURCE_CAPTURE ]E: Error 1045 (Access denied for user 'migration'#'IP' (using password: YES)) connecting to MySQL server 'IP' [1020414] (mysql_endpoint_capture.c:297)
2021-09-28T17:46:20 [SOURCE_CAPTURE ]E: Errors in MySQL server binary logging configuration. Follow all prerequisites for 'MySQL as a source in DMS' from https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html or'MySQL as a target in DMS' from
https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.MySQL.html [1020414] (mysql_endpoint_imp.c:778)
If migrate full load only via this endpoint it successfully this error found when full load + on going migration
To replicate database migration must use TCP/IP port. You should check this port and run database migration again.
I faced same issue while working on AWS DMS RDS mysql to MSK Kafka data migration. I resolved by configuring mysql source endpoint with Secure Socket Layer (SSL) mode verify-ca.
To get a certificate bundle that contains both the intermediate and root certificates for all AWS Regions, download from https://truststore.pki.rds.amazonaws.com/global/global-bundle.pem.
You can valuvate your error in following doc
https://www.percona.com/blog/2019/07/05/fixing-a-mysql-1045-error/
When I try to connect WhereHows backend to MySQL DB in Docker environment I am getting following error message (I checked IP, Username and Password and all 3 are good):
1) Error in custom provider, Configuration error: Configuration error[Cannot connect to database [wherehows]]
At the same time, WhereHows web is connecting without any problem.
Docker version is 17.12.0-ce and I am using following images:
wherehows/backend
wherehows/web
wherehows/mysql
This is my config file - /backend-service/conf/application.conf
# connection to wherehows mysql database
db.wherehows.driver = com.mysql.jdbc.Driver
db.wherehows.url="jdbc:mysql://localhost/wherehows?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false"
db.wherehows.username="wherehows"
db.wherehows.password="wherehows"
I have Adobe ColdFusion 10 installed on my computer and registered with a free website on 000webhost.com. However, when I tried to connect I got this error:
Connection verification failed for data source: ssss
java.sql.SQLException: Timed out trying to establish connection The
root cause was that: java.sql.SQLException: Timed out trying to
establish connection
This is what I typed in the ColdFusion connector:
CF Data Source Name: ssss
Database: a9156701_25
Server: mysql3.000webhost.com Port 3306
Username: a9156701_sayood
Password: *******
I don't know if the problem is with the free web host or the way I added the data source.
Your datasource looks correct. You are not allowed to connect remotely to the database. I found this mentioned in their forums:
11-12-2013, 05:45 PM: Are you trying to connect remotely? (not
allowed) Your files have to be on the server.
I'm trying to create datasource for connection pooling mysql database in Websphere Application Server.
I've set the JDBC Provider, I set the
Implementation class name : com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
my mysql driver version is 5.1.6.
but I got this error while I try to connect the datasource:
The test connection operation failed for data source btn_itb_ds on server server1 at node qnode with the following exception: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Unknown command. View JVM logs for further details.
I have read this http://bugs.mysql.com/bug.php?id=38388 trouble shooting. But they just suggest to upgrade mysql driver version 5.1.X and I have do that. but I've got the same error.