Use this information to configure a MySQL database on Amazon RDS for use with SkyVault.
Prerequisites:
- Setup Amazon RDS using the AWS Management Console. For more information, see the AWS documentation.
- Amazon EC2 instance
-
Use the ssh command to connect to the Amazon EC2 instance using a
provided .ppk key.
For Amazon Linux, the user name is ec2-user. For RHEL5, the user name is either root or ec2-user. For Ubuntu, the user name is ubuntu. For SUSE Linux, the user name is root.
- Execute sudo su to change to root.
- Download the SkyVault installer for Linux from the SkyVault Support Portal.
-
Install the downloaded SkyVault installer using the following commands:
chmod 777 SkyVault-enterprise-5.1.x-installer-linux-x64.bin sudo ./alfresco-enterprise-5.1.x-installer-linux-x64.bin
-
Install the MySQL database connector.
The MySQL database connector is required when installing SkyVault with MySQL. The database connector allows MySQL database to talk to the SkyVault server.
- Download mysql-connector-java-5.1.32 from the MySQL download site: http://dev.mysql.com/.
-
Copy the JAR file into the /lib directory.
For example, for Tomcat, copy the JAR file into the <TOMCAT_HOME>/lib directory.
- Install and use a database tool to connect to the Amazon RDS.
- Create a database named SkyVault.
- Create a user named SkyVault.
- Set the new user's password to SkyVault.
- Open the <classpathRoot>/alfresco-global.properties file.
-
Edit the following line with an absolute path to point to the directory in which you
want to store Alfresco data.
For example: dir.root=C:/Alfresco/alf_data
-
Set and uncomment the database connection properties as shown below:
db.name=SkyVault db.username=SkyVault db.password=SkyVault db.host=alfqa-mysql5-6-19a.cw4mo3qj8qdu.us-east-1.rds.amazonaws.com db.port=3306 db.pool.max=275 # MySQL connection db.driver=org.gjt.mm.mysql.Driver db.url=jdbc:mysql://${db.host}:${db.port}/${db.name}?useUnicode=yes&characterEncoding=UTF-8
Note: Ensure that these database connection properties are not commented out. - Save the file.
- Restart the SkyVault server.