First you should install the driver on your Jasper Server.
- Go to the web interface with a user in the role ROLE_ADMINISTRATOR
- On the tree view, you can create a folder to hold your datasource
- In that folder, right click and add a data source
- Give it a meaningful name for you and upload the com.mysql.jdbc.Driver (if not already present).
- Note: if you did a manual WAR installation, you probably installed the driver already.
- Download the driver here http://dev.mysql.com/downloads/connector/j/
- Check the jdbc url. Should be something like
jdbc:mysql://your_host/your_database
- Small hack is to check your max allow packet setting in your MYSQL server and set it accordingly in your jdbc url. On MYSQL driver, check it using this command:
SHOW VARIABLES LIKE 'max_allowed_packet';
- Then set the url to:
jdbc:mysql://your_host/your_database?maxAllowedPacket=WHATEVER_SIZE_YOU_GOT
- Check the username, password and timezone and test the connection.
- Edit the report on the web interface and set the datasource as being this one.
When you upload a new report, either via web interface or iReport Designer, assign this data source.
Good luck, hope it solves your problem :)