Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Adding a phpMyAdmin cartridge to your application


phpMyAdmin (which you can access at http://www.phpmyadmin.net/) is a free, open source, and popular tool written in the PHP programming language to handle the administration of the MySQL database via a web browser. In this recipe, you will learn how to install a phpMyAdmin cartridge to your application.

Getting ready

To complete this recipe, you will need an application with a MySQL cartridge. Please refer to the Adding a MySQL cartridge to your application recipe in this chapter to learn how to add a MySQL cartridge.

How to do it…

This recipe will walk you through all the steps required to add a phpMyAdmin cartridge to the OpenShift application:

  1. To install the phpMyAdmin cartridge to the myapp application, open a new command-line terminal, change the directory to the myapp directory location, and execute the following command:

    $ rhc add-cartridge phpmyadmin-4
    
  2. Note the username and password returned by the rhc add-cartridge command. You will need...