mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 05:25:30 +00:00
Update mysql-install.sh
tweak
This commit is contained in:
parent
e9ec4c4f8e
commit
a10a0f09dd
@ -37,8 +37,9 @@ msg_ok "Installed MySQL"
|
|||||||
msg_info "Configure MySQL Server"
|
msg_info "Configure MySQL Server"
|
||||||
ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)"
|
ADMIN_PASS="$(openssl rand -base64 18 | cut -c1-13)"
|
||||||
$STD mysql -uroot -p"$ADMIN_PASS" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$ADMIN_PASS'; FLUSH PRIVILEGES;"
|
$STD mysql -uroot -p"$ADMIN_PASS" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$ADMIN_PASS'; FLUSH PRIVILEGES;"
|
||||||
echo "" >>~/mysql.creds
|
echo "" >~/mysql.creds
|
||||||
echo -e "MySQL Root Password: $ADMIN_PASS" >>~/mysql.creds
|
echo -e "MySQL user: root" >>~/mysql.creds
|
||||||
|
echo -e "MySQL password: $ADMIN_PASS" >>~/mysql.creds
|
||||||
msg_ok "MySQL Server configured"
|
msg_ok "MySQL Server configured"
|
||||||
|
|
||||||
read -r -p "Would you like to add PhpMyAdmin? <y/N> " prompt
|
read -r -p "Would you like to add PhpMyAdmin? <y/N> " prompt
|
||||||
|
Loading…
Reference in New Issue
Block a user