linux – Vagrant provision:shell脚本在Debian上安装mariadb-server提示错误

前端之家收集整理的这篇文章主要介绍了linux – Vagrant provision:shell脚本在Debian上安装mariadb-server提示错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在寻找使用MariaDB 10配置Debian 8.2 VirtualBox VM.

我使用以下内容

sudo export DEBIAN_FRONTEND=noninteractive
sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $ROOTDBPWD"
sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $ROOTDBPWD"
sudo debconf-set-selections <<< "mariadb-server mariadb-server/oneway_migration boolean true"
sudo apt-get install mariadb-server -y

在运行时,脚本停止我认为由于最后一个提示“oneway_migration boolean true”,因为我可以在控制台中看到此提示未格式化(即使使用“export DEBIAN_FRONTEND = noninteractive”).

这是我在脚本停止之前得到的:

──────────┤ Configuring mariadb-server-10.0├────────────
MariaDB is a drop-in replacement for MysqL. It will use your current configuration file (my.cnf) and current databases.
Note that MariaDB has some enhanced features,which do not exist in MysqL and thus migration back to MysqL might not always work,at least not as automatically as migrating from MysqL to MariaDB.
Really migrate to MariaDB? <Yes><No>

任何人都可以帮我解决这个问题或分享他们使用shell脚本配置MariaDB 10(或更多)的方式吗?

感谢和问候

解决方法

问题是问题不是来自包mariadb-server,问题来自mariadb-server-10.0(第一次安装后者).

将debconf集选择更改为:

sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/root_password password $ROOTDBPWD"
sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/root_password_again password $ROOTDBPWD"
sudo debconf-set-selections <<< "mariadb-server-10.0 mariadb-server/oneway_migration boolean true"
原文链接:https://www.f2er.com/linux/397233.html

猜你在找的Linux相关文章