summaryrefslogtreecommitdiffstats
path: root/nfvparser/toscaparser/tests/artifacts/mysql/mysql_dbms_configure.sh
blob: d4ef6b4bbb299f5643d9c2b9a03e5e370e8fb224 (plain)
1
2
3
4
5
#!/bin/sh
sed --regexp-extended "s/(port\s*=\s*)[0-9]*/\1$db_port/g" </etc/mysql/my.cnf >/tmp/my.cnf
mv -f /tmp/my.cnf /etc/mysql/my.cnf
/etc/init.d/mysql stop
/etc/init.d/mysql start