2017-06-05 03:37:10 +02:00
|
|
|
#!/bin/bash
|
2017-07-26 13:49:36 +02:00
|
|
|
/etc/init.d/mysql stop
|
|
|
|
|
2017-07-26 13:42:28 +02:00
|
|
|
mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql
|
2017-06-05 03:37:10 +02:00
|
|
|
|
2017-07-26 13:42:28 +02:00
|
|
|
chown -R mysql:mysql /srv/mysql && chown -R mysql:mysql /var/lib/mysql
|
2017-06-05 03:37:10 +02:00
|
|
|
|
2017-07-26 13:42:28 +02:00
|
|
|
cp /sources/milis.git/ayarlar/mysql/my.cnf /etc/mysql/
|
|
|
|
|
|
|
|
/etc/init.d/mysql start
|
2017-06-05 03:37:10 +02:00
|
|
|
|
|
|
|
mysql_secure_installation
|