|
MySQL |
|
MySQL is a popular enterprise-class, open-source database. This is your best choice if you need a free, open-source database. Supported MySQL Versions Collaborator supports MySQL versions 5.6, 5.7, 8.0 & 9.0. Note: MySQL database is supported in Collaborator Team and Collaborator Enterprise. For a complete list of differences between Collaborator editions, please see the comparison page. Required components
Optional components
For downloads and documentation for all platforms, see the MySQL Developer Zone web site. Install and Configure Database 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.
We recommend that you create a user specifically for your Collaborator database rather than using the super-user, root. To do this 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 installing Collaborator 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): CREATE DATABASE IF NOT EXISTS ccollabdb CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE USER 'collabuser' IDENTIFIED BY 'password'; GRANT ALTER, CREATE, CREATE TEMPORARY TABLES, CREATE VIEW, DELETE, DROP, EXECUTE, INDEX, INSERT, LOCK TABLES, SELECT, UPDATE ON TABLE ccollabdb.* TO collabuser; FLUSH PRIVILEGES; Technical details and limitations
1. Download the Connector/J driver. 2. Stop the Collaborator server, if it is running. 3. Open <Collaborator Server>/tomcat/conf/Catalina/localhost/ROOT.xml file and locate the Resource element. 4a. For Connector/J 5.x specify driverClassName="com.mysql.jdbc.Driver": <Resource driverClassName="com.mysql.jdbc.Driver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" maxIdle="20" maxActive="100" maxWait="10000" name="/jdbc/collabserver" password="<DB_password>" scope="Sharable" testOnBorrow="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/<DB_schema>?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true" username="<DB_user>" validationQuery="SELECT 1"/> 4b. For Connector/J 8.x specify driverClassName="com.mysql.cj.jdbc.Driver" and serverTimezone property: <Resource driverClassName="com.mysql.cj.jdbc.Driver" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" maxIdle="20" maxActive="100" maxWait="10000" name="/jdbc/collabserver" password="<DB_password>" scope="Sharable" testOnBorrow="true" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/<DB_schema>?useServerPrepStmts=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=UTC" username="<DB_user>" validationQuery="SELECT 1"/> Tips: The ampersand (&), needs to be SGML encoded to "&" because the configuration file is an XML document. 5. Go to the <Collaborator Server>/tomcat/lib folder. 6. Copy the mysql-connector-java-*.jar file that comes with Connector/J to that folder. 7. Start the Collaborator server.
|
|
© 2003-2025 SmartBear Software. All rights reserved. |