555
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

trias_dbserver_script.sh 896B

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;