如果启动时出错:Failed to start mysql.service: Unit mysql.service is masked

原因可能是之前使用apt-get 安装过mysql,服务被标记过,解除后即可启动:

systemctl unmask mysql.service