CF MySQL Broker provides MySQL databases as a Cloud Foundry service. This broker demonstrates the v2 services API between cloud controllers and service brokers. This API is not to be confused with the cloud controller API; for more info see Service Broker API.
The broker does not include a MySQL server. Instead, it is meant to be deployed alongside a MySQL server, which it manages, as part of cf-mysql-release. Deploying this as a standalone application to cloud foundry (e.g. via cf push
) is not supported. The MySQL management tasks that the broker performs are as follows:
The CF MySQL Broker integration specs will exercise the catalog fetch, create, bind, unbind, and delete functions against its locally installed database.
delete from mysql.user where name='';
flush privileges
mysql -uroot -e "SET GLOBAL innodb_stats_on_metadata=ON"
mysql -uroot -e "SET GLOBAL innodb_stats_persistent=OFF"
$ cd cf-mysql-broker
$ bundle
$ bundle exec rake db:setup
$ bundle exec rake spec