CrystalReports is not too into the open source scene, consequently it doesn’t work with MySQL out of the box. But you can easily get the Crystal Reports Designer to work against a MySQL database by using JDBC.
- Download the MySQL Connector J jar file. That 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.
http://www.kace.com/support/resources/kb/solutiondetail?sol=114992 - Hrkljus 10 years ago