Ubuntu 14.04 LTS apt-get mysql无密码安装

前端之家收集整理的这篇文章主要介绍了Ubuntu 14.04 LTS apt-get mysql无密码安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

MysqL无密码安装,就是跳过输入密码的弹出窗口,只需3步。


第一步,新建一个 MysqL-passwd 文件内容如下:


debconf MysqL-server/root_password password root

debconf MysqL-server/root_password_again password root



第二步,使其文件生效:


debconf-set-selections MysqL-passwd


第三步,安装 MysqL,加 -y 参数跳过:


apt-get install MysqL-server-y



参考文章http://www.2cto.com/database/201206/137862.html

原文链接:https://www.f2er.com/ubuntu/355187.html

猜你在找的Ubuntu相关文章