Commit bedf5a96 by 冷斌

mysql

parent 3679c779
...@@ -42,11 +42,15 @@ return array( ...@@ -42,11 +42,15 @@ return array(
/* 数据库配置 */ /* 数据库配置 */
'DB_TYPE' => 'mysqli', // 数据库类型 'DB_TYPE' => 'mysqli', // 数据库类型
'DB_HOST' => 'localhost', // 服务器地址 // 'DB_HOST' => 'localhost', // 服务器地址
'DB_NAME' => 'bds', // 数据库名 // 'DB_USER' => 'root', // 用户名
// 'DB_PWD' => '', // 密码
'DB_HOST' => '47.108.181.205', // 服务器地址
'DB_USER' => 'root', // 用户名 'DB_USER' => 'root', // 用户名
//'DB_PWD' => 'y17y175465y17', // 密码 'DB_PWD' => 'e8T4u3to2GurjjEH', // 密码
'DB_PWD' => 'root', // 密码
'DB_NAME' => 'bds', // 数据库名
'DB_PORT' => '3306', // 端口 'DB_PORT' => '3306', // 端口
'DB_PREFIX' => 'yi_', // 数据库表前缀 'DB_PREFIX' => 'yi_', // 数据库表前缀
......
...@@ -15,5 +15,7 @@ ...@@ -15,5 +15,7 @@
define('UC_APP_ID', 1); //应用ID define('UC_APP_ID', 1); //应用ID
define('UC_API_TYPE', 'Model'); //可选值 Model / Service define('UC_API_TYPE', 'Model'); //可选值 Model / Service
define('UC_AUTH_KEY', 'hS1nQ$:i,|y[}*-+XKDFsP~_Z3TR=;o7Ok{IJU6z'); //加密KEY define('UC_AUTH_KEY', 'hS1nQ$:i,|y[}*-+XKDFsP~_Z3TR=;o7Ok{IJU6z'); //加密KEY
define('UC_DB_DSN', 'mysqli://root:root@localhost:3306/bds'); // 数据库连接,使用Model方式调用API必须配置此项 //define('UC_DB_DSN', 'mysqli://root:@localhost:3306/bds'); // 数据库连接,使用Model方式调用API必须配置此项
define('UC_DB_DSN', 'mysqli://root:e8T4u3to2GurjjEH@47.108.181.205:3306/bds'); // 数据库连接,使用Model方式调用API必须配置此项
define('UC_TABLE_PREFIX', 'yi_'); // 数据表前缀,使用Model方式调用API必须配置此项 define('UC_TABLE_PREFIX', 'yi_'); // 数据表前缀,使用Model方式调用API必须配置此项
...@@ -19,10 +19,17 @@ require_once("alipay.config.php"); ...@@ -19,10 +19,17 @@ require_once("alipay.config.php");
require_once("lib/alipay_notify.class.php"); require_once("lib/alipay_notify.class.php");
/* 数据库配置 */ /* 数据库配置 */
$config['DB_TYPE']='mysqli';// 数据库类型 $config['DB_TYPE']='mysqli';// 数据库类型
$config['DB_HOST']='localhost';// 服务器地址
$config['DB_NAME']='yhct';// 数据库名 //$config['DB_HOST']='localhost';// 服务器地址
//$config['DB_USER']='root';// 用户名
//$config['DB_PWD']='';// 密码
$config['DB_HOST']='47.108.181.205';// 服务器地址
$config['DB_USER']='root';// 用户名 $config['DB_USER']='root';// 用户名
$config['DB_PWD']='root';// 密码 $config['DB_PWD']='e8T4u3to2GurjjEH';// 密码
$config['DB_NAME']='yhct';// 数据库名
$config['DB_PORT']='3306';// 端口 $config['DB_PORT']='3306';// 端口
$config['DB_PREFIX']='yi_'; // 数据库表前缀 $config['DB_PREFIX']='yi_'; // 数据库表前缀
...@@ -120,4 +127,4 @@ function writeLog($msg, $file) { ...@@ -120,4 +127,4 @@ function writeLog($msg, $file) {
$time = date('Y-m-d H:i:s'); $time = date('Y-m-d H:i:s');
error_log("\r\n[$time] {$msg}\r\n", 3, $file); error_log("\r\n[$time] {$msg}\r\n", 3, $file);
} }
?> ?>
\ No newline at end of file
...@@ -18,10 +18,17 @@ require_once "alipay.config.php"; ...@@ -18,10 +18,17 @@ require_once "alipay.config.php";
require_once "lib/alipay_notify.class.php"; require_once "lib/alipay_notify.class.php";
/* 数据库配置 */ /* 数据库配置 */
$config['DB_TYPE']='mysqli';// 数据库类型 $config['DB_TYPE']='mysqli';// 数据库类型
$config['DB_HOST']='localhost';// 服务器地址
$config['DB_NAME']='yhct';// 数据库名 //$config['DB_HOST']='localhost';// 服务器地址
//$config['DB_USER']='root';// 用户名
//$config['DB_PWD']='';// 密码
$config['DB_HOST']='47.108.181.205';// 服务器地址
$config['DB_USER']='root';// 用户名 $config['DB_USER']='root';// 用户名
$config['DB_PWD']='root';// 密码 $config['DB_PWD']='e8T4u3to2GurjjEH';// 密码
$config['DB_NAME']='yhct';// 数据库名
$config['DB_PORT']='3306';// 端口 $config['DB_PORT']='3306';// 端口
$config['DB_PREFIX']='yi_'; // 数据库表前缀 $config['DB_PREFIX']='yi_'; // 数据库表前缀
...@@ -145,4 +152,4 @@ function writeLog($msg, $file) { ...@@ -145,4 +152,4 @@ function writeLog($msg, $file) {
error_log("\r\n[$time] {$msg}\r\n", 3, $path . '/' . $file); error_log("\r\n[$time] {$msg}\r\n", 3, $path . '/' . $file);
} }
?> ?>
\ No newline at end of file
<?php
exec('cd /app/bds && /usr/bin/git pull 2>&1', $a, $b);
var_dump($a, $b);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment