Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

trias_dbserver_script.sh 892B

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