|
XPlanner Installation - MySQLDatabase CreationNote: XPlanner requires the database character set to be in UTF8. Using the MySQL command line client, create a database called "xplanner". CREATE DATABASE xplanner CHARACTER SET UTF8 COLLATE utf8_general_ci; You can name your database anything you'd like as long as you modify or override the xplanner.properties correctly. Create a user for XPlanner
$ mysql xplanner
Note:Sometimes the upgrade script will hang on trying to open a database connection (especially with c3p0).
This is most likely due to the fact that your user does not have the permission to login as '[userid]@'[hostname]. To fix this, run the following:
grant all on xplanner.* to 'xplanner'@'[hostname]' identified by '[password]'If you want also to access the database remotely run also grant all on xplanner.* to 'xplanner'@'%' identified by '[password]';Make sure you change [password] with a real password (in the installation procedure we use 'xp'). Again be sure to override the database properties in xplanner-custom.properties with your user and password. See the MySQL grant syntax for more information. Packet Size Configuration for AttachmentsXPlanner allows up to 1Gb attachments. You need to setup Mysql for that size attachments
following the packet size configuration instructions. [mysqld] max_allowed_packet=1024M Mysql TipsMysql option file locationMysql stores its configuration options in a file as followed: Windows
Unix
The --defaults-file option instructs the MySQL server to read the specified file for configuration options when it starts. References: Windows location, Options file locations UTF8 charsetSet mysql default character set to UTF8To configure MySQL to use UTF-8 encoding by default, edit your option file and add the lines: [mysqld] You can then create dataase in this simpler way CREATE DATABASE xplanner Changing the tables of an already created database to UTF8Alter the tables to use UTF-8 encoding:ALTER TABLE xxx CHARACTER SET utf8; |