MySQL is a popular enterprise-class, open-source database. This is your best choice if you need a free, open-source database.
Collaborator supports MySQL versions 5.6, 5.7 and 8.0.
|Note:||MySQL database is supported in Collaborator Team and Collaborator Enterprise. For a complete list of differences between Collaborator editions, see the comparison page.|
Connector/J – database driver for Java platforms. Supported driver versions are 5.1.x - 8.0.x
|When upgrading to Connector/J 8.0.x be aware that it performs time offset adjustments, so your server should either use one of canonical time zones or use the
MySQL Workbench – GUI tool for graphical server administration. A GUI tool alternative to MySQL Command Line Client, which is a part of the database server.
For downloads and documentation for all platforms, see the MySQL Developer Zone website.
First, install the database server component. Once you have installed the server, the last screen will give you the option to configure the MySQL server. If you select this, it will open a new wizard for configuration. Two parts in the configuration that are especially important: Port Number and Root Password. You will need to know both while getting your database setup and while configuring Collaborator to work with your database. For information on configuring your database server, go to the MySQL Documentation and select your MySQL version.
For Collaborator, you have to create a separate database, since the MySQL Server install will not create a database for you. This is a manual step that you need to do.
You can create a database using the MySQL Command Line Client, or using MySQL Workbench. If you plan to use the MySQL GUI client, it is important to know that the MySQL GUI Tools Bundle is reaching end of life. The instructions given in this documentation use the functionality in the current GUI client, MySQL Workbench.
The steps below for creating a database were written using MySQL Workbench 5.2.16 and are subject to change. As always, the most reliable source for database creation steps is MySQL Workbench Documentation.
Open MySQL Workbench.
Create a connection to your database server.
From the Home screen, under Server Administration, select New Server Instance.
Follow the steps in the New Server Instance wizard.
Create the database.
Go back to Home.
Under SQL Development, select the database server connection you provided in step 2.
In the Object Explorer, right-click and select Create Schema.
A screen will appear and prompt you to provide a schema name. Once you have done that, click Apply.
You will be shown the command used to create the schema, and given an option to edit it.
Once the create command is as you want it, click Apply.
You will be returned to the screen you saw in step 3. Click Finish.
We recommend that you create a user specifically for your Collaborator database rather than using the super-user, root. The database user must have the following priveleges:
ALTER, CREATE, CREATE TEMPORARY TABLES, CREATE VIEW, DELETE, DROP, EXECUTE, INDEX, INSERT, LOCK TABLES, SELECT, UPDATE. To learn how to create users in MySQL Workbench, see the documentation at MySQL Schema Privileges.
All of these changes go into effect immediately. You do not have to restart the MySQL server for changes to take effect.
When installingCollaborator on a server, the installation wizard will prompt for the MySQL server host name, TCP/IP port, database name, user name, password and path to JDBC driver. The installer will report any connectivity errors. When you visit the web page for Collaborator it will detect that you have a new database and will create all tables, indexes, and views for you automatically.
The following SQL script can be used to create a database and a database user for Collaborator and configure the required permissions for that user (be sure to change the database name, user login and password as appropriate):
The MySQL native restore feature does not automatically clear the database before restoring from backup. You can use the MySQL native restore feature, but you must manually drop all tables in the database before you run the restore. By doing this, you will ensure an exact reproduction of your backed-up database. Option two is to use the alternative method provided by Collaborator.
Connector/J have different driver class names in versions 5.x and 8.x. During installation the wizard assigns the appropriate name based on the JDBC driver you have specified. To change the driver name afterwards, you may either re-run the installation wizard, or modify the Collaborator's ROOT.xml manually, as described below:
Download the Connector/J driver.
Stop the Collaborator server, if it is running.
Open <Collaborator Server>/tomcat/conf/Catalina/localhost/ROOT.xml and locate the
For Connector/J 5.x specify
For Connector/J 8.x specify
Go to the <Collaborator Server>/tomcat/lib folder.
Copy the mysql-connector-java-*.jar file that comes with Connector/J to that folder.
Start the Collaborator server.