mysql_yapilandir 283 B

12345678910111213
  1. #!/bin/bash
  2. /etc/init.d/mysql stop
  3. mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql
  4. chown -R mysql:mysql /srv/mysql && chown -R mysql:mysql /var/lib/mysql
  5. cp /sources/milis.git/ayarlar/mysql/my.cnf /etc/mysql/
  6. /etc/init.d/mysql start
  7. mysql_secure_installation