Connection with MuOnline Database Failed - Fix this
<?phpCitar
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
/*------------------------------------------*\
| Server Databases: |
| |
| 0 : MuOnline [database] |
| 1 : MuOnline and Me_Muonline [databases] |
\*------------------------------------------*/
$core['server_use_2_db'] = "0";
##############################################
/*-------------------------------------*\
| MUCore SQL Connection Type: |
| |
| MSSQL : Connect using mssql_conect() |
| ODBC : Connect using odbc |
\*-------------------------------------*/
//$core['connection_type'] = "ODBC";
$core['connection_type'] = "MSSQL";
#########################################
/*--------------------------------------------------*\
| MuOnline Database Connection Settings |
| |
| $core['db_host'] : Database host address |
| $core['db_name'] : Database name |
| $core['db_use'] : SQL Authentication user |
| $core['db_password'] : SQL Authentication password |
\*--------------------------------------------------*/
$core['db_host'] = "xxxxxxxxxxx";
$core['db_name'] = "MuOnline";
$core['db_user']= "sa";
$core['db_password'] = "xxxxxxxxxxxxxxxx";
######################################################
/*------------------------------------------------------------------*\
| NOTE: |
| Edit this only if $core['server_use_2_db'] value is set to 1, |
| this mean your server use MuOnline and Me_MuOnline databases. |
| |
| Me_MuOnline Database Connection Settings |
| |
| $core['db_host2'] : Database host address |
| $core['db_name2'] : Database name |
| $core['db_use2'] : SQL Authentication user |
| $core['db_password2'] : SQL Authentication password |
\*------------------------------------------------------------------*/
$core['db_host2'] = "xxxxxxxxx";
$core['db_name2'] = "MuOnline";
$core['db_user2']= "sa";
$core['db_password2'] = "xxxxxxxxxxxxxxx";
######################################################################
/*-------------------------------------------------*\
| MUCore Admin Control Panel: |
| |
| $core['admin_username'] : Administrator user |
| $core['admin_password'] : Administrator password |
\*-------------------------------------------------*/
$core['admin_username'] = 'Admin';
$core['admin_password'] = '12345';
#####################################################
/*-----------------------------------------------------*\
| MUCore's MUCoins SQL Table Settings: |
| |
| MU_COINS_TABLE : MUCoins table name |
| MU_COINS_COLUMN : MUCoins (Credits) column name |
| MU_COINS_USERID_COLUMN : MUCoins User ID column name |
\*-----------------------------------------------------*/
define('MU_COINS_TABLE','memb_credits');
define('MU_COINS_COLUMN','credits');
define('MU_COINS_USERID_COLUMN','memb___id');
define('MU_SCOINS_TABLE','memb_scredits');
define('MU_SCOINS_COLUMN','scredits');
define('MU_SCOINS_USERID_COLUMN','memb___sid');
#########################################################
/*--------------------------------------*\
| MUCore Debug Settings: |
| |
| 1 : Debug enabled |
| 0 : Debug disabled |
| |
| Note: Enable debug only if necessary. |
\*--------------------------------------*/
$core['debug'] = 0;
##########################################
if (!defined('E_STRICT')) define( 'E_STRICT', 2048 );
if (!defined('E_RECOVERABLE_ERROR')) define( 'E_RECOVERABLE_ERROR', 4096 );
if (!defined('E_DEPRECATED')) define( 'E_DEPRECATED', 8192 );
if (!defined('E_USER_DEPRECATED')) define( 'E_USER_DEPRECATED', 16384 );
function GetRealUserIP() {
switch (true) {
case (!empty($_SERVER['HTTP_X_REAL_IP'])):
return $_SERVER['HTTP_X_REAL_IP'];
case (!empty($_SERVER['HTTP_CLIENT_IP'])):
return $_SERVER['HTTP_CLIENT_IP'];
case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])):
return $_SERVER['HTTP_X_FORWARDED_FOR'];
default:
return $_SERVER['REMOTE_ADDR'];
}
}
function GetRealIP() {
if (isset($_SERVER)) {
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (isset($_SERVER["HTTP_CLIENT_IP"])) {
$ip = $_SERVER["HTTP_CLIENT_IP"];
} else {
$ip = $_SERVER["REMOTE_ADDR"];
}
} else {
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
} else {
$ip = getenv('REMOTE_ADDR');
}
}
return $ip;
}
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
?>
hola de nuevo jajaa
tengo un problema al instalar webmucore 1.0.8 by maryjo...
abri el puerto 1433, en el cpanel agrege la ip de confianza la del vps, ley una guia que habia y no puedo ligar la base de datos con el hostingCode: [Select]Connection with MuOnline Database Failed - Fix this
config.php<?phpCitar
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
/*------------------------------------------*\
| Server Databases: |
| |
| 0 : MuOnline [database] |
| 1 : MuOnline and Me_Muonline [databases] |
\*------------------------------------------*/
$core['server_use_2_db'] = "0";
##############################################
/*-------------------------------------*\
| MUCore SQL Connection Type: |
| |
| MSSQL : Connect using mssql_conect() |
| ODBC : Connect using odbc |
\*-------------------------------------*/
//$core['connection_type'] = "ODBC";
$core['connection_type'] = "MSSQL";
#########################################
/*--------------------------------------------------*\
| MuOnline Database Connection Settings |
| |
| $core['db_host'] : Database host address |
| $core['db_name'] : Database name |
| $core['db_use'] : SQL Authentication user |
| $core['db_password'] : SQL Authentication password |
\*--------------------------------------------------*/
$core['db_host'] = "xxxxxxxxxxx";
$core['db_name'] = "MuOnline";
$core['db_user']= "sa";
$core['db_password'] = "xxxxxxxxxxxxxxxx";
######################################################
/*------------------------------------------------------------------*\
| NOTE: |
| Edit this only if $core['server_use_2_db'] value is set to 1, |
| this mean your server use MuOnline and Me_MuOnline databases. |
| |
| Me_MuOnline Database Connection Settings |
| |
| $core['db_host2'] : Database host address |
| $core['db_name2'] : Database name |
| $core['db_use2'] : SQL Authentication user |
| $core['db_password2'] : SQL Authentication password |
\*------------------------------------------------------------------*/
$core['db_host2'] = "xxxxxxxxx";
$core['db_name2'] = "MuOnline";
$core['db_user2']= "sa";
$core['db_password2'] = "xxxxxxxxxxxxxxx";
######################################################################
/*-------------------------------------------------*\
| MUCore Admin Control Panel: |
| |
| $core['admin_username'] : Administrator user |
| $core['admin_password'] : Administrator password |
\*-------------------------------------------------*/
$core['admin_username'] = 'Admin';
$core['admin_password'] = '12345';
#####################################################
/*-----------------------------------------------------*\
| MUCore's MUCoins SQL Table Settings: |
| |
| MU_COINS_TABLE : MUCoins table name |
| MU_COINS_COLUMN : MUCoins (Credits) column name |
| MU_COINS_USERID_COLUMN : MUCoins User ID column name |
\*-----------------------------------------------------*/
define('MU_COINS_TABLE','memb_credits');
define('MU_COINS_COLUMN','credits');
define('MU_COINS_USERID_COLUMN','memb___id');
define('MU_SCOINS_TABLE','memb_scredits');
define('MU_SCOINS_COLUMN','scredits');
define('MU_SCOINS_USERID_COLUMN','memb___sid');
#########################################################
/*--------------------------------------*\
| MUCore Debug Settings: |
| |
| 1 : Debug enabled |
| 0 : Debug disabled |
| |
| Note: Enable debug only if necessary. |
\*--------------------------------------*/
$core['debug'] = 0;
##########################################
if (!defined('E_STRICT')) define( 'E_STRICT', 2048 );
if (!defined('E_RECOVERABLE_ERROR')) define( 'E_RECOVERABLE_ERROR', 4096 );
if (!defined('E_DEPRECATED')) define( 'E_DEPRECATED', 8192 );
if (!defined('E_USER_DEPRECATED')) define( 'E_USER_DEPRECATED', 16384 );
function GetRealUserIP() {
switch (true) {
case (!empty($_SERVER['HTTP_X_REAL_IP'])):
return $_SERVER['HTTP_X_REAL_IP'];
case (!empty($_SERVER['HTTP_CLIENT_IP'])):
return $_SERVER['HTTP_CLIENT_IP'];
case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])):
return $_SERVER['HTTP_X_FORWARDED_FOR'];
default:
return $_SERVER['REMOTE_ADDR'];
}
}
function GetRealIP() {
if (isset($_SERVER)) {
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (isset($_SERVER["HTTP_CLIENT_IP"])) {
$ip = $_SERVER["HTTP_CLIENT_IP"];
} else {
$ip = $_SERVER["REMOTE_ADDR"];
}
} else {
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
} else {
$ip = getenv('REMOTE_ADDR');
}
}
return $ip;
}
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
?>
sisihola de nuevo jajaa
tengo un problema al instalar webmucore 1.0.8 by maryjo...
abri el puerto 1433, en el cpanel agrege la ip de confianza la del vps, ley una guia que habia y no puedo ligar la base de datos con el hostingCode: [Select]Connection with MuOnline Database Failed - Fix this
config.php<?phpCitar
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
/*------------------------------------------*\
| Server Databases: |
| |
| 0 : MuOnline [database] |
| 1 : MuOnline and Me_Muonline [databases] |
\*------------------------------------------*/
$core['server_use_2_db'] = "0";
##############################################
/*-------------------------------------*\
| MUCore SQL Connection Type: |
| |
| MSSQL : Connect using mssql_conect() |
| ODBC : Connect using odbc |
\*-------------------------------------*/
//$core['connection_type'] = "ODBC";
$core['connection_type'] = "MSSQL";
#########################################
/*--------------------------------------------------*\
| MuOnline Database Connection Settings |
| |
| $core['db_host'] : Database host address |
| $core['db_name'] : Database name |
| $core['db_use'] : SQL Authentication user |
| $core['db_password'] : SQL Authentication password |
\*--------------------------------------------------*/
$core['db_host'] = "xxxxxxxxxxx";
$core['db_name'] = "MuOnline";
$core['db_user']= "sa";
$core['db_password'] = "xxxxxxxxxxxxxxxx";
######################################################
/*------------------------------------------------------------------*\
| NOTE: |
| Edit this only if $core['server_use_2_db'] value is set to 1, |
| this mean your server use MuOnline and Me_MuOnline databases. |
| |
| Me_MuOnline Database Connection Settings |
| |
| $core['db_host2'] : Database host address |
| $core['db_name2'] : Database name |
| $core['db_use2'] : SQL Authentication user |
| $core['db_password2'] : SQL Authentication password |
\*------------------------------------------------------------------*/
$core['db_host2'] = "xxxxxxxxx";
$core['db_name2'] = "MuOnline";
$core['db_user2']= "sa";
$core['db_password2'] = "xxxxxxxxxxxxxxx";
######################################################################
/*-------------------------------------------------*\
| MUCore Admin Control Panel: |
| |
| $core['admin_username'] : Administrator user |
| $core['admin_password'] : Administrator password |
\*-------------------------------------------------*/
$core['admin_username'] = 'Admin';
$core['admin_password'] = '12345';
#####################################################
/*-----------------------------------------------------*\
| MUCore's MUCoins SQL Table Settings: |
| |
| MU_COINS_TABLE : MUCoins table name |
| MU_COINS_COLUMN : MUCoins (Credits) column name |
| MU_COINS_USERID_COLUMN : MUCoins User ID column name |
\*-----------------------------------------------------*/
define('MU_COINS_TABLE','memb_credits');
define('MU_COINS_COLUMN','credits');
define('MU_COINS_USERID_COLUMN','memb___id');
define('MU_SCOINS_TABLE','memb_scredits');
define('MU_SCOINS_COLUMN','scredits');
define('MU_SCOINS_USERID_COLUMN','memb___sid');
#########################################################
/*--------------------------------------*\
| MUCore Debug Settings: |
| |
| 1 : Debug enabled |
| 0 : Debug disabled |
| |
| Note: Enable debug only if necessary. |
\*--------------------------------------*/
$core['debug'] = 0;
##########################################
if (!defined('E_STRICT')) define( 'E_STRICT', 2048 );
if (!defined('E_RECOVERABLE_ERROR')) define( 'E_RECOVERABLE_ERROR', 4096 );
if (!defined('E_DEPRECATED')) define( 'E_DEPRECATED', 8192 );
if (!defined('E_USER_DEPRECATED')) define( 'E_USER_DEPRECATED', 16384 );
function GetRealUserIP() {
switch (true) {
case (!empty($_SERVER['HTTP_X_REAL_IP'])):
return $_SERVER['HTTP_X_REAL_IP'];
case (!empty($_SERVER['HTTP_CLIENT_IP'])):
return $_SERVER['HTTP_CLIENT_IP'];
case (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])):
return $_SERVER['HTTP_X_FORWARDED_FOR'];
default:
return $_SERVER['REMOTE_ADDR'];
}
}
function GetRealIP() {
if (isset($_SERVER)) {
if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) {
$ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (isset($_SERVER["HTTP_CLIENT_IP"])) {
$ip = $_SERVER["HTTP_CLIENT_IP"];
} else {
$ip = $_SERVER["REMOTE_ADDR"];
}
} else {
if (getenv('HTTP_X_FORWARDED_FOR')) {
$ip = getenv('HTTP_X_FORWARDED_FOR');
if (strpos($ip, ",")) {
$exp_ip = explode(",", $ip);
$ip = $exp_ip[0];
}
} else
if (getenv('HTTP_CLIENT_IP')) {
$ip = getenv('HTTP_CLIENT_IP');
} else {
$ip = getenv('REMOTE_ADDR');
}
}
return $ip;
}
/**
* @+===========================================================================+
* @� MUCore v1.0.8 Premium �
* @� Credits: Isumeru & MaryJo & Dao Van Trong - Trong.CF �
* @+===========================================================================+
*/
?>
La empresa que te brinda hosting tiene soporte MSSQL?
En la lineahola
$core['db_host'] = "xxxxxxxxxxx"; proba poner en ves de IP el nombre que tiene la pc hosting ejemplo.
$core['db_host'] = "MuOnlineServer";
A mi me anda asi espero te ayude
En la lineahola
$core['db_host'] = "xxxxxxxxxxx"; proba poner en ves de IP el nombre que tiene la pc hosting ejemplo.
$core['db_host'] = "MuOnlineServer";
A mi me anda asi espero te ayude
$core['db_host'] = "xxxxxxxxxxx";
aqui debe ir la ip del pc o vps host no el nombre
Aca
$core['db_host'] = "MuOnlineServer";
debes fijarte bien el nombre de la base de datos que tienes en el sql