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 |
a410b0 |
# starting with 5.10, we have to differ between mysql55 and mysql
|
|
Christoph Galuschka |
a410b0 |
if [ $centos_ver = 5 ]
|
|
Christoph Galuschka |
a410b0 |
then
|
|
Christoph Galuschka |
a410b0 |
t_InstallPackage mysql55-mysql-server nc
|
|
Christoph Galuschka |
a410b0 |
t_ServiceControl mysql55-mysqld start >/dev/null 2>&1
|
|
Christoph Galuschka |
a410b0 |
else
|
|
Christoph Galuschka |
a410b0 |
t_InstallPackage mysql-server nc
|
|
Christoph Galuschka |
a410b0 |
t_ServiceControl mysqld start >/dev/null 2>&1
|
|
Christoph Galuschka |
a410b0 |
fi
|