Postado Junho 26, 2014 10 anos Quando abro minha distro, na hora de ler a database, aparece essa mensagem. Vou postar meu config.lua pra vocês verem pra mim qual é o erro! -- The Forgotten Server Config -- Account Manager accountManager = "yes" newPlayerChooseVoc = "no" newPlayerSpawnPosX = 95 newPlayerSpawnPosY = 117 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 1 newPlayerMagicLevel = 0 generateAccountNumber = "yes" -- Banishments broadcastBanishments = "yes" banDays = 7 finalBanDays = 30 killsToBan = 0 -- Battle worldType = "pvp" hotkeyAimbotEnabled = "yes" protectionLevel = 1 killsToRedSkull = 3 killsToBlackSkull = 6 pzLocked = 60000 criticalHitChance = 7 removeAmmoWhenUsingDistanceWeapon = "yes" removeChargesFromRunes = "yes" removeChargesFromWeapons = "yes" timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 15 * 60 * 1000 oldConditionAccuracy = "no" stairJumpExhaustion = 2000 -- Commands displayGamemastersWithOnlineCommand = "no" -- Connection Config ip = "127.0.0.1" bindOnlyGlobalAddress = "no" loginProtocolPort = 7171 gameProtocolPort = 7172 adminProtocolPort = 7171 statusProtocolPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = "1000" motd = "Welcome to the Forgotten Server!" onePlayerOnlinePerAccount = "yes" allowClones = "no" serverName = "Forgotten" loginMessage = "Welcome to the Forgotten Server!" adminLogsEnabled = "no" statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = "yes" -- Death -- note: Leave deathLosePercent as -1 if you want to use Tibia's -- death penalty formula. For the old formula, set it to 10. For -- no skill/experience loss, set it to 0. deathLosePercent = -1 deathListEnabled = "yes" maxDeathRecords = 5 -- Guilds ingameGuildSystem = "yes" levelToCreateGuild = 8 minGuildNameLength = 4 maxGuildNameLength = 20 -- Houses housePriceEachSQM = 1000 houseRentPeriod = "never" -- Idle kickIdlePlayerAfterMinutes = 15 -- Item Usage timeBetweenActions = 200 timeBetweenExActions = 1000 -- Map mapName = "Styller" mapAuthor = "Darkz" randomizeTiles = "no" mapStorageType = "relational" -- Market marketEnabled = "yes" marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = "yes" checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- Messaging maxMessageBuffer = 4 -- MySQL mysqlHost = "localhost" mysqlUser = "root" mysqlPass = "" mysqlDatabase = "theforgottenserver" mysqlPort = 3306 -- Premium Account freePremium = "no" -- PVP Server displayOnOrOffAtCharlist = "no" allowChangeOutfit = "yes" noDamageToSameLookfeet = "no" experienceByKillingPlayers = "no" -- Rates rateExp = 5 rateSkill = 3 rateLoot = 2 rateMagic = 3 rateSpawn = 1 -- Real Server Save -- note: serverSaveHour means like 03:00, not that it will save every 3 hours, -- if you want such a system use autoSaveEachMinutes. this serversave method -- may be unstable, we recommend using otadmin if you want real serversaves. serverSaveEnabled = "no" serverSaveHour = 3 shutdownAtServerSave = "yes" cleanMapAtServerSave = "yes" -- Server saving autoSaveEachMinutes = 15 saveGlobalStorage = "no" -- Spawns deSpawnRange = 2 deSpawnRadius = 50 -- Stamina staminaSystem = "yes" -- SQLite sqliteDatabase = "Styller.s3db" -- SQL sqlType = "sqlite" passwordType = "plain" -- Startup defaultPriority = "high" startupDatabaseOptimization = "yes" -- Shutdown freeMemoryAtShutdown = "yes" -- Status ownerName = "" ownerEmail = "@otland.net" url = "http://otland.net/" location = "Europe"
Postado Junho 26, 2014 10 anos Verifique se o arquivo Styller.s3db se encontra na pasta do OT. Se não só adicionar...
Postado Junho 26, 2014 10 anos Autor Ele está sim, só não sei porque está aparecendo isso... os s3db da versão 8.6 e 9.81 se diferenciam? Se sim, só pode ser esse o problema.
Postado Junho 26, 2014 10 anos Tem 2 possibilidades de dar esse erro se o seu servidor for mysql: 1 - Servidor mysql desligado. 2 - Dados para conexão mysql errados. Os dados que o servidor usa para se conectar estão no config.lua, revise-os e veja se o mysql esta ligado! sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "senha_do_phpmyadmin" sqlDatabase = "nome_da_database" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "sha1" Por favor, quando for criar um tópico tente simplificar pelo tópico .. eu arrumei para você! E também use a barra de pesquisa antes, você pode encontrar a resolução mais rápido. • http://www.tibiaking...o-sql-database/ • http://www.tibiaking...o-sql-datebase/ • http://www.tibiaking...ro-ajuda-aew-d/ • http://www.tibiaking...06-error-mysql/ • http://www.tibiaking.com/forum/topic/35999-erro-couldnt-establish-connection-to-sql-database/ • http://www.tibiaking.com/forum/topic/36129-erro-erro-sql-datebase/ A vida é tão simples, basta saber vive-la OBS: Quando for colocar códigos grandes, coloque-os em spoiler .. [#spoiler] CÓDIGO [#/spoiler] (sem o #) Espero ter ajudado, abraços!
Postado Julho 11, 2014 10 anos Eu arrumei o meu só que deu outro erro e arrumei ou poderá ser assim , se sua database estiver em alguma pasta dentro do seu OT , faça o seguinte: Citar sqlType = "sqlite" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "" sqlFile = "schemas/Contas.s3db" --- Mude estilo o meu ( schemas a pasta , se estiver duas pasta coloque , schemas/nomedapasta/forgotten.s3db ) , se persistir comente. sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" Editado Julho 11, 2014 10 anos por pauliinho157 (veja o histórico de edições)
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.