2.03 - Redhat installation

This procedure is tested and approved on Redhat 6 and 7.


1. Create a yum repository :

sudo cat <<EOF >/etc/yum.repo.d/squashtest.repo
[squashtest]
name=Squashtest
baseurl=http://repo.squashtest.org/redhat/$releasever/
gpgcheck=1
EOF


2. Import the gpg key :

sudo rpm --import http://repo.squashtest.org/repo.squashtest.org.gpg.key


3. Install packages :

sudo yum install squash-tm

4. Create the database for Squash TM :

mysql -u root -p create squashtm


5. Create the database table with the script below (the database administrator executing this script must have SUPER privilege) :

mysql -u root -p squashtm < /usr/share/doc/squash-tm/database-scripts/mysql-full-install.sql


6. Create a user on this database :

echo "grant select,create temporary tables,insert,delete,update on squashtm.* to 'squash-tm'@'localhost' identified by 'mon_password';" | mysql -u root -p


7. Configure the database as root, as written in the FAQ, using this file :

/etc/sysconfig/squash-tm

You need to insert these information :


DB_URL="jdbc:mysql://localhost/squashtm"
DB_DRIVER="com.mysql.jdbc.Driver"
DB_USERNAME="squash-tm"
DB_PASSWORD="mon_password"
DB_DIALECT="org.hibernate.dialect.MySQLDialect"


8. Run the service :

sudo /etc/init.d/squash-tm start