O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a MySQL cartridge to your application

At the time of this writing, OpenShift supports two versions of the MySQL database. You can view the supported MySQL versions by running the following command:

$ rhc cartridges|grep mysql
mysql-5.1           MySQL 5.1                               addon
mysql-5.5           MySQL 5.5                               addon

Getting ready

To prepare for this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for more details. Also, we will use the application created in the Creating an OpenShift application using the rhc command-line client recipe in Chapter 3, Creating and Managing Applications.

How to do it…

Follow these steps to add the MySQL ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required