How to connect to a MySQL database from PHP using OpenShift 3

Php

Video is ready, Click Here to View ×


In this video, I show you how to use my test repo to connect to a mysql database using PHP. All on OpenShift 3 Online.

repo: https://github.com/gshipley/phpdatabase.git

3 thoughts on “How to connect to a MySQL database from PHP using OpenShift 3

  1. Except my error is about "No such file or directory" !

    Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /opt/app-root/src/dbtest.php on line 8
    Connect failed:

Leave a Reply

Your email address will not be published. Required fields are marked *