milis/bin/mysql_yapilandir

13 lines
283 B
Bash
Executable File

#!/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