Postado Janeiro 26, 2017 8 anos 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 Janeiro 26, 2017 8 anos 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'); }
Postado Janeiro 26, 2017 8 anos Autor Tudo alterado, ainda nada velho, to procurando se tem algo nos outros arquivos.
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.