Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: base de datos no conecta con hosting  (Visto 1904 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline pepeeh Posteado: August 04, 2017, 10:01:16 PM | Modificado: August 04, 2017, 10:05:39 PM by pepeeh

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 166
  • Gracias recibida: 1515
  • cl
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                      �
* @+===========================================================================+
*/
?>


Gracias:


Offline -Rastaa.TSM☢ #1 Posteado: August 04, 2017, 10:03:27 PM

  • MAESTRO

  • US. DE HONOR

  • Super moderador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 883
  • Gracias recibida: 25004
  • ve
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?

Gracias:


Offline pepeeh #2 Posteado: August 04, 2017, 10:04:11 PM

  • 0 puntos por ventas
  • *
  • Rank: Experto
  • Posts: 166
  • Gracias recibida: 1515
  • cl
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


Offline -Rastaa.TSM☢ #3 Posteado: August 04, 2017, 10:15:16 PM | Modificado: August 04, 2017, 11:22:02 PM by Rastaa

  • MAESTRO

  • US. DE HONOR

  • Super moderador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 883
  • Gracias recibida: 25004
  • ve
Haz probado con otra MuCore?, te dejo esta por acá  es la que uso actualmente en hosting/vps/pc local, funcional amigo.



Contraseña:tuservermu.com.ve


@pepeeh  avisame si te sirvio.


Offline duglas_nike9 #4 Posteado: April 21, 2020, 07:35:37 PM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 104
  • Gracias recibida: 23
  • pe
alguna solucion a este error tambiem me sucede lo mismo mi sorporte en vps


Offline Darien815 #5 Posteado: April 21, 2020, 09:52:58 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 41
  • Gracias recibida: 736
  • ar
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


Offline Linck #6 Posteado: April 21, 2020, 10:05:50 PM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 63
  • Gracias recibida: 15
  • cl
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


Offline Darien815 #7 Posteado: April 21, 2020, 10:29:50 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 41
  • Gracias recibida: 736
  • ar
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


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
8 Replies
1205 Views
Last post March 30, 2020, 01:28:23 PM
by Darien815
1 Replies
722 Views
Last post May 11, 2020, 02:01:06 AM
by ernesto2
10 Replies
983 Views
Last post July 21, 2020, 02:52:00 PM
by Cartman
4 Replies
577 Views
Last post October 31, 2020, 09:24:57 PM
by load_01
5 Replies
1195 Views
Last post November 25, 2020, 10:49:35 AM
by lunaticodeveloper