As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
# ######################################### # # Index Recovery and Tracking Configuration # # ######################################### # # # Recovery types are: # NONE: Ignore # VALIDATE: Checks that the first and last transaction for each store is represented in the indexes # AUTO: Validates and auto-recovers if validation fails # FULL: Full index rebuild, processing all transactions in order. The server is temporarily suspended. index.recovery.mode=FULL
3. Create a tablespace in MySQL called 'public' and create a user who has permissions on this tablespace (e.g alfrescohsql). Note: the tablespace must be called 'public' to match the tablespace used in the HSQL database.
multimedia:/usr/lib/mysql-gui/migration-toolkit-script # ./run_migration_simpleMySQL Migration Toolkit - Script Version 1.1.9exp————————————————-Initializing migration environment…Initialisation complete.******************************** Source database connection. ********************************Please choose a database system:——————————–1. Oracle Database Server2. MySQL Server3. MaxDB Database Server4. Generic Jdbc5. Sybase Server6. MS SQL Server7. MS Access0. AbortSource Database System: 4Please choose a connection:—————————1. Create new connection2. hsql0. Abort-1.Delete a connectionConnection: 2Selected connection: hsql————————-classname: org.hsqldb.jdbcDriverexplicit_password: alfresco
– ———————————————————————-– MySQL GRT Application– SQL Script– ———————————————————————-SET FOREIGN_KEY_CHECKS = 0;DROP DATABASE IF EXISTS `PUBLIC`;CREATE DATABASE IF NOT EXISTS `PUBLIC` CHARACTER SET latin1 COLLATE latin1_swedish_ci;– ————————————-– TablesCREATE TABLE `PUBLIC`.`ALF_ACCESS_CONTROL_ENTRY` ( `ID` BIGINT NOT NULL, `ACL_ID` BIGINT NOT NULL, `PERMISSION_ID` BIGINT NOT NULL, `AUTHORITY_ID` VARCHAR(100) NOT NULL, `ALLOWED` BOOLEAN NOT NULL, PRIMARY KEY (`ID`), UNIQUE INDEX `SYS_IDX_206` (`ID`), UNIQUE INDEX `SYS_IDX_SYS_CT_104_208` (`ACL_ID`, `PERMISSION_ID`, `AUTHORITY_ID`), ….
$ mysql -uroot -p<password>
mysql> drop database alfresco;
mysql> quit;
13:26:16,443 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Cou ld not detect RMI registry - creating new one13:26:20,194 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection t o OpenOffice could not be established.13:26:25,941 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: user://alfrescoUserStore13:26:26,021 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfr esco/extension/restore/export_users.acp13:26:26,389 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import started at Sat Dec 15 13:26:26 CST 2007 (1197696386388)13:26:39,027 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import complet ed at Sat Dec 15 13:26:39 CST 2007 (1197696399027)13:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import duratio n: 12639 ms (Note: excluding commit time)13:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes created : 14613:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes linked: 013:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Aspects Added : 013:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Properties se t: 160513:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Content set: 013:26:39,028 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Permissions s et: 113:26:46,702 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Created store: system://system….
…13:56:14,159 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Importing alfresco/extension/restore/export_spaces.acp13:56:25,144 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import started at Sat Dec 15 13:56:25 CST 2007 (1197698185144)14:25:13,575 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import completed at Sat Dec 15 14:25:13 CST 2007 (1197699913559)14:25:13,604 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Import duration: 1728415 ms (Note: excluding commit time)14:25:13,604 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes created: 404414:25:13,604 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Nodes linked: 214:25:13,605 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Aspects Added: 629914:25:13,605 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Properties set: 4659314:25:13,605 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Content set: 266514:25:13,605 DEBUG [org.alfresco.repo.importer.ImporterBootstrap] Permissions set: 55514:25:30,552 WARN [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder.14:25:30,552 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data14:25:31,143 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …14:25:31,162 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.14:25:31,191 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).14:25:36,318 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP14:25:36,319 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)14:25:36,524 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_08-b03; maximum heap size 506.313MB14:25:36,525 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38
INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Alfresco is using the HSQL default database. Please only use this while evaluating Alfresco, it is NOT recommended for production or deployment!
17:04:50,410 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: imconvert "c:\alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformer_init_source_58308.gif" "c:\alfresco\tomcat\temp\Alfresco\ImageMagickContentTransformer_init_target_58309.png"17:05:10,926 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one17:05:26,239 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.17:05:48,833 WARN [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'. 'dir.root' should be overridden to point to a specific folder.17:05:48,833 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: .\alf_data17:05:55,630 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …17:05:55,771 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.17:05:55,771 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).17:05:56,771 ERROR [org.alfresco.smb.protocol] Error accessing Win32 NetBIOS, check DLL is on the path17:05:59,427 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_14-b03; maximum heap size 506.313MB17:05:59,427 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38
DROP TABLE IF EXISTS `PUBLIC`.`ALF_ACCESS_CONTROL_ENTRY`;CREATE TABLE `PUBLIC`.`ALF_ACCESS_CONTROL_ENTRY` ( `ID` BIGINT NOT NULL, `ACL_ID` BIGINT NOT NULL, `PERMISSION_ID` BIGINT NOT NULL, `AUTHORITY_ID` VARCHAR(100) NOT NULL, `ALLOWED` BOOLEAN NOT NULL, PRIMARY KEY (`ID`), UNIQUE INDEX `SYS_IDX_206` (`ID`), UNIQUE INDEX `SYS_IDX_SYS_CT_104_208` (`ACL_ID`, `PERMISSION_ID`, `AUTHORITY_ID`),…
To make MySQL fully UTF-8 you need to make some changes to you 'my.ini' or 'my.cnf' configuration files - and these changes are outside the scope of Alfresco. Again, read the MySQL documentation for information on doing this.
I would not recommend anyone follow your instructions for changing from HSQL to MySQL since they can not be guaranteed to give reliable results. If your method was appropriate we would have documented that in the Wiki, and we didn't. The method that is in the Wiki is guaranteed to work.I will update the Wiki with the additional steps above for those who are unable to read the MySQL documentation.