🔒 Repository is read-only – file editing is disabled.

recipes/utils/mariadb/mariadb.post-install main

9 linii Raw ← Powrót
123456789
INFO="\033[1;36m"
NORMAL="\033[0;39m"
printf "${INFO} Create a /etc/mysql/my.cnf  by comparing it with /etc/mysql/my.cnf.example ${NORMAL}\n"
printf "${INFO} Create a database if need by run the command: ${NORMAL}\n"
printf "sudo  mysql_install_db --basedir=/usr --datadir=/srv/mysql --user=mysql\n"
printf "sudo  chown -R mysql:mysql /srv/mysql\n"
printf "${INFO} Secure MariaDB by running the command: ${NORMAL}\n"
printf "sudo /usr/bin/mysql_secure_installation\n"
printf "${INFO} Make sure the mysql service is running before ${NORMAL}\n"