bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_mysql/0-install_mysqld.sh

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