Update 'Apache-Installer.sh'
This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
# LAMP #
|
# LAMP #
|
||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
install apache2 -y
|
apt install apache2 mysql-server-5.7 -y
|
||||||
apt install mysql-server-5.7 -y
|
|
||||||
mysql_secure_installation
|
mysql_secure_installation
|
||||||
mysql -u root -p"$passwd" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;"
|
mysql -u root -p"$passwd" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;"
|
||||||
mysql -u root -p"$passwd" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '"$passwd"';"
|
mysql -u root -p"$passwd" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '"$passwd"';"
|
||||||
|
|||||||
Reference in New Issue
Block a user