i need help with a automation script which is capable of installing mysql-server in a list of servers automatically without asking for mysql password
#!/usr/bin/env bash
read -p "Enter server name : " servername
echo "Installing package on $servername"
ssh "${servername}" sudo apt-get -y install apache2 apache2-doc apache2-utils
thats the script is used, it works for apache but not for mysql