在ubuntu
使用debconf-set-selections sudo debconf-set-selections 在此脚本中,用所需的root密码替换your_password。注意:也可以将您的your_password blank放置以将root密码设置为空。
特定的mysql versionssudo debconf-set-selections
MySQL Community Server
For MySQL community editions, the debconf-set-selections keys differ slightly:
sudo debconf-set-selections echo ... | sudo debconf-set-selectionscat
要检查配置的root密码,使用debconf-get-selections命令:
免责声明: 提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发到邮箱:[email protected] 我们会第一时间内为您处理。
Copyright© 2022 湘ICP备2022001581号-3