Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Installation3.0Labs 3
This page describes how to download, install, and set up the MySQL database for use with Alfresco. For information on using other databases, see Using Alfresco with other databases than MySQL.
Note: Alfresco requires MySQL 4.1 or higher.
To download and install MySQL:
Note: Make sure that MySQL is configured using InnoDB engine, as this is needed to support transactions. Most of the time this is already the default selection.
Test MySQL is installed and running by opening a command prompt and enter:
mysql -u root -p
When installing Alfresco with MySQL, you must install the MySQL database connector. The database connector allows MySQL database to talk to the Alfresco server.
To install the MySQL database connector:
To create the MySQL database for Alfresco to use:
(Version 3 will create the database for you)
cd c:\alfresco\extras\databases\mysql
, and press Enter.db_setup
, and press Enter.Note: On Linux one can use: $ mysql -u root -p
If the setup is correct, a MySQL database is created with the following properties:
If the setup is incorrect, the following message may appear:
'mysql' is not recognized as an internal or external command
If you receive the previous error message, add the mysql command to the Windows Path variable, and try to create a MySQL database again.
To confirm that the database is created:
A list of databases in MySQL displays, including one named alfresco.
NOTE: The database will contain NO TABLES. This is expected. The tables will be created when Alfresco is run for the first time.
To replace the HSQL default database, you must modify values in both custom-repository.properties and custom-hibernate-dialect.properties, located within the extension folder.
To configure MySQL:
Note: You can either save the file in its current location (the <extension> directory), or in another directory. If you save the file in the <extension> directory, no further action is needed because the file is already pointed to by the repository-properties bean in the <extension>/customrepository-context.xml file. If you save the file elsewhere, you must point to your customized file.