MySQL上的Jasper Server CE 6.2的安装问题

时间:2016-02-18 13:23:45

标签: mysql installation jasperserver

我正在尝试按照JasperReports-Server-CP-Install-Guide.pdf文件中指定的步骤安装Jasper Server CE 6.2(3.2使用js-install脚本安装WAR文件)

更新default_master.properties后,当我尝试使用js-install-ce.bat test命令运行测试时,我收到以下错误(从日志中提取)

错误详情

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

default_master.properties文件中的数据库详细信息

# 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

注意:用户jasper_admin已存在于DB中,并且此连接已成功测试。数据库jasper也存在。

我无法以root用户身份连接!如果有任何解决方法,请建议我。

提前感谢您的帮助。

[update]在错误日志中,我可以看到以下错误

 Could not connect: Access denied for user 'jasper_admin'@'%' to database 'mysql'

但是我可以看到Jasper构建脚本使用什么代码来验证这个?因为,我可以通过MySQL客户端使用同一个用户连接到MySQL数据库。

1 个答案:

答案 0 :(得分:0)

问题出在MySQL用户" jasper_admin"。该用户应该可以访问内部数据库mysql。最好的情况是尝试使用MySQL安装Jasper" root"用户。