#!/bin/bash
/etc/init.d/mysql stop 

mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql

chown -R mysql:mysql /srv/mysql && chown -R mysql:mysql /var/lib/mysql

cp /sources/milis.git/ayarlar/mysql/my.cnf /etc/mysql/

/etc/init.d/mysql start

mysql_secure_installation
