d4ef6b4bbb299f5643d9c2b9a03e5e370e8fb224
[parser.git] /
1 #!/bin/sh
2 sed --regexp-extended "s/(port\s*=\s*)[0-9]*/\1$db_port/g" </etc/mysql/my.cnf >/tmp/my.cnf
3 mv -f /tmp/my.cnf /etc/mysql/my.cnf
4 /etc/init.d/mysql stop
5 /etc/init.d/mysql start