You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_mysql/0-install_mysqld.sh

24 lines
603 B

#!/bin/bash
# Author: Athmane Madjoudj <athmanem@gmail.com>
# Christoph Galuschka <tigalch@tigalch.org>
t_Log "Running $0 - installing and starting mysql server."
# MySQL
# starting with 5.10, we have to add mysql55
if [ "$centos_ver" -ge 7 ] ; then
my_packages="mariadb mariadb-server nc"
mysql_service="mariadb"
elif [ "$centos_ver" = "5" ] ;then
my_packages="mysql mysql-server nc mysql55-mysql-server"
mysql_service="mysqld"
else
my_packages="mysql mysql-server nc"
mysql_service="mysqld"
fi
t_InstallPackage ${my_packages}
t_ServiceControl ${mysql_service} start >/dev/null 2>&1