Configuring WebSphere Application Server for MySQL manually
IBM Worklight V5.0.5. automatically configures your databases. However, if you are using an older version of IBM Worklight, or if you are experiencing problems with the automatic configuration process for the WebSphere Application Server, you must manually set up and configure your MySQL database and then the WebSphere Application Server for MySQL. Complete the MySQL database setup procedure before continuing.
- Set up the JDBC provider:
- In the WebSphere Application Server console, click Resources > JDBC > JDBC Providers.
- Create a JDBC provider named MySQL.
- Set Database type to User defined.
- Set Scope to Cell.
- Set Implementation class to com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource.
- Set Database classpath to the location of the MySQL JDBC connector .jar file.
- Save your changes.
- If you are using JNDI configuration, rather than URI configuration, create a data source for the IBM Worklight database:
- Click Resources > JDBC > Data sources.
- Click New to create a data source.
- Type any name (for example, Worklight Database).
- Set JNDI Name to jdbc/WorklightDS.
- Use the existing JDBC Provider MySQL, defined in the previous step.
- Set Scope to New.
- On the Configuration tab, select the Non-transactional data source check box.
- Click Next a number of times, leaving all other settings as defaults.
- Save your changes.
- If you are using JNDI configuration, rather than URI configuration, create a data source for the IBM Worklight reports database:
- Click New to create a data source.
- Type any name (for example, Worklight Report Database).
- Set JNDI Name to jdbc/WorklightReportsDS or any other name defined in the worklight.properties file to refer to the IBM Worklight report database.
- Use the existing JDBC Provider MySQL, defined in the previous step.
- Set Scope to New.
- On the Configuration tab, select the Non-transactional data source check box. New.
- Click Next a number of times, leaving all other settings as defaults.
- Save your changes.
- Set the custom properties of each new data source.
- Select the new data source.
- Click Custom properties.
- Set the following properties:
port = 3306 relaxAutoCommit=true databaseName = the name of the MySQL database serverName = the host name of the MySQL server user = the user name of the MySQL server password = the password associated with the user name
Parent topic Troubleshooting