#!/bin/bash

MYSQL=/usr/bin/mysql
PWD=$(awk -F\" '{print $10}' /usr/local/lxlabs/kloxo/etc/slavedb/dbadmin)

$MYSQL -uroot -p$PWD -e "exit"

if [ $? -eq 1 ]
then
	pkill -9 mysql
	/etc/init.d/mysqld restart
fi
