Przeglądaj źródła

Updated db server script

pull/12/head
Steffan JJ 1 rok temu
rodzic
commit
e07a04b28c
1 zmienionych plików z 13 dodań i 14 usunięć
  1. 13
    14
      trias_dbserver_script.sh

+ 13
- 14
trias_dbserver_script.sh Wyświetl plik

@@ -2,23 +2,22 @@
sudo apt update
sudo apt install mysql-server
sudo systemctl start mysql.service
sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
sudo systemctl restart mysql



#STEPS FOR MYSQL_SECURE_INSTALLATION
#STEP-1 sudo mysql
#STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '${WHATEVER_PASSWORD_YOU_WANT_TO_SET}';
#STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SET_PASSWORD';
#STEP-3 exit;
#STEP-4 mysql -u root -p
#STEP-5 ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; AND FOLLOW THE STEPS
#STEP-6 sudo mysql_secure_installation;
#STEP-7 sudo mysql;
#STEP-8 mysql -u root -p
#STEP-9 "ENTER MYSQL PASSWORD THAT WAS SET IN STEP 2"
#STEP-10 CREATE USER ‘_username_’@‘_desiredIP_’ IDENTIFIED WITH mysql_native_password BY ‘password’;
#STEP-11 GRANT ALL PRIVILEGES ON *.* TO ‘_username_’@‘_desiredIP_’ WITH GRANT OPTION;
#STEP-12 FLUSH PRIVILEGES;
#STEP-4 sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
#STEP-5 sudo systemctl restart mysql
#STEP-6 mysql -u root -p
#STEP-7 ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; AND FOLLOW THE STEPS
#STEP-8 exit;
#STEP-9 sudo mysql_secure_installation;
#STEP-10 sudo mysql;
#STEP-11 mysql -u root -p
#STEP-12 "ENTER MYSQL PASSWORD THAT WAS SET IN STEP 2"
#STEP-13 CREATE USER '_username_'@'_desiredIP_' IDENTIFIED WITH mysql_native_password BY 'password';
#STEP-14 GRANT ALL PRIVILEGES ON *.* TO '_username_'@'_desiredIP_' WITH GRANT OPTION;
#STEP-15 FLUSH PRIVILEGES;



Ładowanie…
Anuluj
Zapisz