����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
share
/
fastpanel2
/
bin
/
mysql
/
Filename :
install-default.sh
back
Copy
#!/bin/bash source /usr/share/fastpanel2/bin/mysql/shared-functions.sh function installMySQL { Message "Installing MySQL 8.0 from ubuntu ${OS} APT Repository.\n" MYSQL_PASSWORD=`pwgen 16 1` echo "mysql-server-8.0 mysql-server/root_password password ${MYSQL_PASSWORD}" | debconf-set-selections echo "mysql-server-8.0 mysql-server/root_password_again password ${MYSQL_PASSWORD}" | debconf-set-selections echo "dbconfig-common dbconfig-common/mysql/authplugin select mysql_native_password" | debconf-set-selections apt-get install -y mysql-server || InstallationFailed echo -e "[client]\nuser = root\npassword = ${MYSQL_PASSWORD}\n" > /root/.my.cnf SetRecommenedSettingsMySQL_8_0 MySQLSecureInstallation /usr/local/fastpanel2/fastpanel mysql configure }