555
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

trias_dbserver_script.sh 896B

преди 1 година
преди 1 година
1234567891011121314151617181920212223
  1. #MYSQL SERVER INSTALLATION
  2. sudo apt update
  3. sudo apt install mysql-server
  4. sudo systemctl start mysql.service
  5. #STEPS FOR MYSQL_SECURE_INSTALLATION
  6. #STEP-1 sudo mysql
  7. #STEP-2 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'SET_PASSWORD';
  8. #STEP-3 exit;
  9. #STEP-4 sudo sed -i "s/.*bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf
  10. #STEP-5 sudo systemctl restart mysql
  11. #STEP-6 mysql -u root -p
  12. #STEP-7 ALTER USER 'root'@'localhost' IDENTIFIED WITH auth_socket; AND FOLLOW THE STEPS
  13. #STEP-8 exit;
  14. #STEP-9 sudo mysql_secure_installation;
  15. #STEP-10 sudo mysql;
  16. #STEP-11 mysql -u root -p
  17. #STEP-12 "ENTER MYSQL PASSWORD THAT WAS SET IN STEP 2"
  18. #STEP-13 CREATE USER '_username_'@'_desiredIP_' IDENTIFIED WITH mysql_native_password BY 'password';
  19. #STEP-14 GRANT ALL PRIVILEGES ON *.* TO '_username_'@'_desiredIP_' WITH GRANT OPTION;
  20. #STEP-15 FLUSH PRIVILEGES;