TUServerMU

MuOnline => Soporte / Ayudas => Tema comenzado por: pepeeh on August 04, 2017, 10:01:16 PM

Titulo: base de datos no conecta con hosting
Posteado por: pepeeh on August 04, 2017, 10:01:16 PM
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 hosting

Code: [Select]
Connection with MuOnline Database	Failed - Fix this

config.php

Citar
<?php
/**
* @+===========================================================================+
* @� 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                      �
* @+===========================================================================+
*/
?>

(http://i.imgur.com/dZzyMTQ.jpg)
Titulo: Re: base de datos no conecta con hosting
Posteado por: -Rastaa.TSM☢ on August 04, 2017, 10:03:27 PM
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 hosting

Code: [Select]
Connection with MuOnline Database	Failed - Fix this

config.php

Citar
<?php
/**
* @+===========================================================================+
* @� 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?
Titulo: Re: base de datos no conecta con hosting
Posteado por: pepeeh on August 04, 2017, 10:04:11 PM
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 hosting

Code: [Select]
Connection with MuOnline Database	Failed - Fix this

config.php

Citar
<?php
/**
* @+===========================================================================+
* @� 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?
sisi
Titulo: Re: base de datos no conecta con hosting
Posteado por: -Rastaa.TSM☢ on August 04, 2017, 10:15:16 PM
Haz probado con otra MuCore?, te dejo esta por acá  es la que uso actualmente en hosting/vps/pc local, funcional amigo.

(http://i.imgur.com/Z9MYwwl.png)

Contraseña:tuservermu.com.ve


@pepeeh  avisame si te sirvio.
Titulo: Re: base de datos no conecta con hosting
Posteado por: duglas_nike9 on April 21, 2020, 07:35:37 PM
alguna solucion a este error tambiem me sucede lo mismo mi sorporte en vps
Titulo: Re: base de datos no conecta con hosting
Posteado por: Darien815 on April 21, 2020, 09:52:58 PM
En la linea

$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
Titulo: Re: base de datos no conecta con hosting
Posteado por: Linck on April 21, 2020, 10:05:50 PM
En la linea

$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
hola

$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
Titulo: Re: base de datos no conecta con hosting
Posteado por: Darien815 on April 21, 2020, 10:29:50 PM
En la linea

$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
hola

$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

Mira asi lo tengo yo probando

http://prntscr.com/s3olbd