Function server_forge::deployment::deploy_mysql
source · pub fn deploy_mysql() -> Result<(), Box<dyn Error>>
Expand description
Deploys and configures the MySQL database server.
This function installs MySQL using the appropriate package manager, starts the MySQL service, enables it to start on boot, and runs the mysql_secure_installation script to set up basic security measures.
§Returns
Returns Ok(())
if MySQL is deployed successfully, or an error if deployment fails.