gpt4 book ai didi

php - 如何使用 puppetlabs-mysql 安装 mySQL 5.6.23

转载 作者:可可西里 更新时间:2023-11-01 08:05:08 25 4
gpt4 key购买 nike

环境:

  • Vagrant (VirtualBox)

  • Ubuntu 14

  • 傀儡

-Puppetlabs-mysql ( https://github.com/puppetlabs/puppetlabs-mysql )

问题:

使用 puppetlabs-mysql(版本 3.6.1)我正在尝试安装 mySQL 5.6.23,但它似乎正在安装 5.5.4。

我尝试将属性“确保”设置为“5.6”,但它给了我这个错误:

 Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install mysql-server=5.6' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Version '5.6' for 'mysql-server' was not found
==> default:
==> default: Error: /Stage[main]/Mysql::Server::Install/Package[mysql-server]/ensure: change from purged to 5.6 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install mysql-server=5.6' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: E: Version '5.6' for 'mysql-server' was not found
==> default:

如何安装 5.6.23?

最佳答案

使用 package_name 代替 ensure。这对我有用:

class { '::mysql::server':
package_name => 'mysql-server-5.6'
}

如果安装的 mysql-client 版本不正确,请同时添加:

class { '::mysql::client':
package_name => 'mysql-client-5.6'
}

关于php - 如何使用 puppetlabs-mysql 安装 mySQL 5.6.23,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33536131/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com