嗨,我很熟悉openshift和php.So如何将我的php连接到openshift数据库?更具体地说,我的php连接脚本应该连接到我的MySQL数据库?将php连接到数据库
这是我的齿轮
Domain: testing123hello
Created: May 21 1:41 PM
Gears: 2 (defaults to small)
Git URL: ssh://[email protected]/~/g
it/php.git/
SSH: [email protected]
Deployment: auto (on git push)
haproxy-1.4 (Web Load Balancer)
Gears: Located with php-5.4
php-5.4 (PHP 5.4)
Scaling: x1 (minimum: 1, maximum: available) on small gears
的mysql-5.5(MySQL的5.5)
Gears: 1 small
Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
Database Name: php
Password: *********
Username: *********
的[如何连接到数据库openshift应用]可能重复(http://stackoverflow.com/questions/15921169/how-to-connect-to-the-database -in-openshift-application)(当谷歌搜索“php openshift数据库”时的* first *结果之一) – h2ooooooo 2014-09-30 07:38:19
脚本是放在mysql_connect.php文件下吗? – 2014-09-30 07:41:31