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.

i.mysql.sh 684B

12345678910111213141516171819202122232425
  1. # Determine the group to add the user to based on the OS
  2. if [ -f /etc/os-release ]; then
  3. . /etc/os-release
  4. OS_NAME=$NAME
  5. fi
  6. # MySQL Installation for CentOS Stream
  7. if [[ "$OS_NAME" == "CentOS Linux" ]] || [[ "$OS_NAME" == "CentOS Stream" ]]; then
  8. bash elxr/i.mysql.centos.sh
  9. else
  10. # If on Ubuntu/Debian, you can use debconf-set-selections
  11. sudo debconf-set-selections <<EOF
  12. mysql-server mysql-server/lowercase-table-names select Enabled
  13. EOF
  14. sudo apt install mysql-server -y
  15. sudo systemctl start mysql
  16. fi
  17. # Output MySQL status
  18. echo "MySQL installation completed successfully."
  19. # You can log into MySQL by running:
  20. echo "You can log into MySQL with: mysql -u root -p"