12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #!/bin/bash
-
-
- echo "Updating the system..."
- sudo yum update -y
-
-
-
- sudo dnf install mysql-server -y
- sudo systemctl start mysqld
- sudo systemctl enable mysqld
- MYSQL_ROOT_PASSWORD=$(sudo grep 'temporary password' /var/log/mysqld.log | tail -n 1 | awk '{print $NF}')
- echo "MySQL root temporary password: $MYSQL_ROOT_PASSWORD"
- sudo mysql_secure_installation
-
- bash elxr/mysql.init.sh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|