[请益] 怎么用PHP连openshift数据库?

楼主: mlev (大地彩妆果园)   2017-03-28 22:47:28
<html>
<?php
//服务器、帐号、密码、数据库
$mysql_server_name = "127.6.246.2:3306" ;
$mysql_username = "1234";
$mysql_password = "1234";
$mysql_database = "dadifarm";
//建立连线
作者: MOONRAKER (㊣牛鹤鳗毛人)   2017-03-28 23:52:00
作者: wotupset (wotupset)   2017-03-31 07:36:00
这种数据库会自动变更密码 要用openshift给的环境变量

Links booklink

Contact Us: admin [ a t ] ucptt.com