Pivotal Knowledge Base

Follow

Reinstalling MySQL for Pivotal Cloud Foundry version 2 and above

Environment

MySQL for Pivotal Cloud Foundry (PCF) v2.1, v2.2, and v2.3.

Purpose

This Knowledge Base article describes how to reinstall the MySQL for PCF v2.x tile in the same environment where it was previously uninstalled. 

Procedure

Reinstalling the MySQL for PCF v2.x tile requires the following:

  • Ensuring that the previous tile was correctly uninstalled
  • Deleting all remaining service instances, the service broker, and the deployment
  • Installing the tile

Ensure Previous Tile Was Uninstalled

Do the following to ensure that the previous tile was correctly uninstalled:

1. Use the cf CLI to log in to your PCF deployment as an admin with cf login.

2. Run cf marketplace to confirm that the Marketplace does not list MySQL for PCF.

3. Depending on which version of the BOSH CLI you are using, follow one of the steps below to log in to BOSH as an admin:

Note: For more information about the BOSH CLI, see the BOSH documentation.

  1. For BOSH CLI v2: Use bosh2 log-in.
  2. For BOSH CLI v1: Use bosh login.

4. Depending on which version of the BOSH CLI you are using, follow one of the steps below to display your BOSH deployments to confirm that the output does not show a MySQL for PCF deployment:

  1. For BOSH CLI v2: Use bosh2 deployments.
  2. For BOSH CLI v1: Use bosh deployments.

Delete Service Instances, Service Broker, and Deployment

5. Perform the steps in Delete All Service Instances to delete every instance of the service.

6. Perform the steps in Deregister Broker to delete the service broker.

7. Depending on which version of the BOSH CLI you are using, follow one of the steps below:

  1. For BOSH CLI v2: Use bosh2 delete-deployment BROKER-DEPLOYMENT-NAME to delete the service broker BOSH deployment.
  2. For BOSH CLI v1: Use bosh delete deployment BROKER-DEPLOYMENT-NAME to delete the service broker BOSH deployment.

Reinstall Tile

Reinstall the tile by following the installation instructions for your version of MySQL for PCF v2.x. For example, if you are reinstalling MySQL for PCF v2.2, perform the steps in Installing and Configuring MySQL for PCF in the MySQL for PCF v2.2 docs.

Comments

Powered by Zendesk