|
@ -89,13 +89,13 @@ if [[ -e /etc/os-release ]]; then |
|
|
#sudo sed -i -e "/bind-address/d" /etc/mysql/mysql.conf.d/mysqld.cnf |
|
|
#sudo sed -i -e "/bind-address/d" /etc/mysql/mysql.conf.d/mysqld.cnf |
|
|
##sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf |
|
|
##sudo sed -i -e "/bind-address/d" /etc/mysql/my.cnf |
|
|
sudo sed -i -e "s/127.0.0.1/0.0.0.0/g" /etc/mysql/mariadb.conf.d/50-server.cnf |
|
|
sudo sed -i -e "s/127.0.0.1/0.0.0.0/g" /etc/mysql/mariadb.conf.d/50-server.cnf |
|
|
sudo mysqmladmin password password |
|
|
|
|
|
|
|
|
sudo mysqladmin password password |
|
|
sudo systemctl restart mariadb |
|
|
sudo systemctl restart mariadb |
|
|
elif [[ $ID = 'fedora' ]]; then |
|
|
elif [[ $ID = 'fedora' ]]; then |
|
|
# fedora currently not tested nor supported |
|
|
# fedora currently not tested nor supported |
|
|
sudo dnf install -y mariadb-server python3-mysql |
|
|
sudo dnf install -y mariadb-server python3-mysql |
|
|
printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf |
|
|
printf "[mysqld]\nbind-address = 127.0.0.1\n" | sudo tee /etc/my.cnf.d/faafo.conf |
|
|
sudo mysqmladmin password password |
|
|
|
|
|
|
|
|
sudo mysqladmin password password |
|
|
sudo systemctl enable mariadb |
|
|
sudo systemctl enable mariadb |
|
|
sudo systemctl start mariadb |
|
|
sudo systemctl start mariadb |
|
|
else |
|
|
else |
|
|