28 lines
932 B
PHP
28 lines
932 B
PHP
<?php
|
|
|
|
if( defined('SAE_APPNAME') )
|
|
{
|
|
$GLOBALS['config']['db']['db_host'] = SAE_MYSQL_HOST_M;
|
|
$GLOBALS['config']['db']['db_host_read'] = SAE_MYSQL_HOST_S;
|
|
|
|
$GLOBALS['config']['db']['db_port'] = SAE_MYSQL_PORT;
|
|
|
|
$GLOBALS['config']['db']['db_user'] = SAE_MYSQL_USER;
|
|
$GLOBALS['config']['db']['db_password'] = SAE_MYSQL_PASS;
|
|
$GLOBALS['config']['db']['db_name'] = SAE_MYSQL_DB;
|
|
|
|
}
|
|
else
|
|
{
|
|
// $GLOBALS['config']['db']['db_host'] = 'localhost';
|
|
// $GLOBALS['config']['db']['db_port'] = 3307;
|
|
// $GLOBALS['config']['db']['db_host'] = '39.99.233.183';
|
|
// $GLOBALS['config']['db']['db_host'] = '47.75.142.244';
|
|
$GLOBALS['config']['db']['db_host'] = '39.100.116.156';
|
|
$GLOBALS['config']['db']['db_port'] = 3306;
|
|
$GLOBALS['config']['db']['db_user'] = 'root';
|
|
$GLOBALS['config']['db']['db_password'] = 'bjzgy113#';
|
|
// $GLOBALS['config']['db']['db_name'] = 'mw_test';
|
|
$GLOBALS['config']['db']['db_name'] = 'gate_opmonitor';
|
|
}
|