- Download the MySQL Connector J jar file. Tha download should contain a jar file that looks something like:
mysql-connector-java-3.1.14-bin.jar- Add the location of your newly downloaded jar file to the Classpath, as defined in CrystalReports CRConfig.xml file. On a Windows machine, the config file will be located somewhere like:
C:\Program Files\Business Objects\Common\3.5\java\CRConfig.xml - Once you have altered your CRConfig.xml, close and reopen Crystal Reports.
- From the menu: File > New > Standard Report
- In the Available Data Sources list, double-click to expand Create New Connection.
- Double-click to expand JDBC (JNDI)
- Double-click Make New Connection
- Connection URL: jdbc:mysql://db.example.com/dbname (Use your own database host name and db name).
- Database Classname: com.mysql.jdbc.Driver
- Click Next
- Enter a database user/password combination when prompted.
- You should now be able to inspect the tables/columns in the database to begin reporting.
If the connection is not allowed, make sure you are granted access settings in MySQL, allowing you to connect from wherever you are. Try connecting using the vanilla MySQL command line client.
NOTE: This is not supported by KACE Technical Support but has been reported to work. This information is provided as a How To only.