我使用https://github.com/puphpet/puppetlabs-mysql来设置mysql配置,我需要将bind-address变量更改为0.0.0.0.
我试图这样做
mysql::config::override_options {
'mysqld' : 'bind-address' => '0.0.0.0'
}
Run Code Online (Sandbox Code Playgroud)
但它不起作用.
你能帮我建议怎么做吗?
先感谢您!
mme*_*mey 18
答案似乎不符合最新版本的模块(> 3.1).
您可以使用:
class { '::mysql::server':
override_options => {
mysqld => { bind-address => '0.0.0.0'} #Allow remote connections
},
# ... other class options
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3586 次 |
| 最近记录: |