Ir para conteúdo

Featured Replies

  • Respostas 18
  • Visualizações 592
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Abra ele e copie tudo, dps poste aqui em spoiler

  • Se fosse para alterar igual o config.lua ficaria assim:  {     define('SERVERCONFIG_SQL_HOST', 'localhost');     define('SERVERCONFIG_SQL_PORT', '3306');     define('SERVERCONFIG_SQL_USER', 'ro

Postado
  • Autor
Agora, Noob II disse:

esse load.database tbm

 

Segue no spoiler, eu alterei o nome do banco de dados, e já alterei também nos arquivos php, porém sem sucesso ainda.

 

o site da pra ser acessado, www.belobra-world.com mas vai aparecer pra ti como aparece aqui pra mim...

 



<?php
if(!defined('INITIALIZED'))
    exit;

if(Website::getServerConfig()->isSetKey('mysqlHost'))
{
    define('SERVERCONFIG_SQL_HOST', 'localhost');
    define('SERVERCONFIG_SQL_PORT', '3306');
    define('SERVERCONFIG_SQL_USER', 'root');
    define('SERVERCONFIG_SQL_PASS', '');
    define('SERVERCONFIG_SQL_DATABASE', 'belobra');
    define('SERVERCONFIG_SQLITE_FILE', 'sqlFile');
}
else
    new Error_Critic('#E-3', 'There is no key <b>mysqlHost</b> in server config', array(new Error('INFO', 'use server config cache: <b>' . (Website::getWebsiteConfig()->getValue('useServerConfigCache') ? 'true' : 'false') . '</b>')));
Website::setDatabaseDriver(Database::DB_MYSQL);
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_HOST))
    Website::getDBHandle()->setDatabaseHost(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_HOST));
else
    new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_HOST . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PORT))
    Website::getDBHandle()->setDatabasePort(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PORT));
else
    new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PORT . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_DATABASE))
    Website::getDBHandle()->setDatabaseName(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_DATABASE));
else
    new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_DATABASE . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_USER))
    Website::getDBHandle()->setDatabaseUsername(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_USER));
else
    new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_USER . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PASS))
    Website::getDBHandle()->setDatabasePassword(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PASS));
else
    new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PASS . '</b> in server config file.');

Website::setPasswordsEncryption(Website::getServerConfig()->getValue('passwordType'));
$SQL = Website::getDBHandle();

Postado
Citar

{
    define('SERVERCONFIG_SQL_HOST', 'localhost');
    define('SERVERCONFIG_SQL_PORT', '3306');
    define('SERVERCONFIG_SQL_USER', 'root');
    define('SERVERCONFIG_SQL_PASS', 'Aqui a senha do phpmadmin a mesma que você colocou no config.lua');
    define('SERVERCONFIG_SQL_DATABASE', 'E aqui o nome da database, igual o config.lua');
    define('SERVERCONFIG_SQLITE_FILE', 'sqlFile');
}

 

Se fosse para alterar igual o config.lua ficaria assim: 

{
    define('SERVERCONFIG_SQL_HOST', 'localhost');
    define('SERVERCONFIG_SQL_PORT', '3306');
    define('SERVERCONFIG_SQL_USER', 'root');
    define('SERVERCONFIG_SQL_PASS', 'galinhapreta');
    define('SERVERCONFIG_SQL_DATABASE', 'belobra-world');
    define('SERVERCONFIG_SQLITE_FILE', 'sqlFile');
}

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo