local:
mysql:
host: 127.0.0.1
port: 3306
dev:
mysql:
host: 127.0.0.1
port: 3306
qa:
mysql:
host: 127.0.0.1
port: 3306
pre:
mysql:
host: 127.0.0.1
port: 3306
gr:
mysql:
host: 127.0.0.1
port: 3306
yc:
mysql:
host: 127.0.0.1
port: 3306
production:
mysql:
host: 127.0.0.1
port: 3306
<?php
$file = 'config.yml';
$data = Yaml::load($file);
<?php
$file = 'config.yml';
$data = Yaml::load($file);
$data['mysql']['port'] = 3307;
Yaml::save($file,$data);
local:
mysql:
host: 127.0.0.1
port: 3307
dev:
mysql:
host: 127.0.0.1
port: 3306
qa:
mysql:
host: 127.0.0.1
port: 3306
pre:
mysql:
host: 127.0.0.1
port: 3306
gr:
mysql:
host: 127.0.0.1
port: 3306
yc:
mysql:
host: 127.0.0.1
port: 3306
production:
mysql:
host: 127.0.0.1
port: 3306