Update MySQL configuration in installation script to use password for flushing privileges

This commit is contained in:
fabrice1236 2025-01-06 20:48:48 +01:00
parent 2c65b7fc9a
commit f69c725944

View File

@ -32,9 +32,13 @@ $STD ufw allow 'Nginx Full'
# Configure MySQL
msg_info "Configuring MySQL"
$STD mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'ghost';"
$STD mysql -u root -e "FLUSH PRIVILEGES;"
$STD mysql -u root -p'ghost' -e "FLUSH PRIVILEGES;"
msg_ok "Configured MySQL"
Rules updated (v6)
# Set up Node.js Repository
msg_info "Setting up Node.js Repository"
mkdir -p /etc/apt/keyrings