Skip to content

Instantly share code, notes, and snippets.

@keithresar
keithresar / ocmysql
Last active January 4, 2017 18:45
Launch client to access MySQL service inside OpenShift project
#!/usr/bin/env bash
#
# Assumes the following environment variables are available in the project:
#
# MYSQL_USER, MYSQL_USER, MYSQL_DATABASE
#
# This script will discover the environment variables, open a port-forwarding request for
# MySQL, then will open the client using the project credentials.
#