~gandelman-a/charms/quantal/mysql/trunk

1
2
3
4
5
6
7
8
9
#!/bin/sh

# Kill the replication
mysql -uroot -p`cat /var/lib/juju/mysql.passwd` -e 'STOP SLAVE;'
mysql -uroot -p`cat /var/lib/juju/mysql.passwd` -e 'RESET SLAVE;'
# No longer a slave
# XXX this may change the server-id .. not sure if thats what we
# want!
rm /var/lib/juju/i.am.a.slave