Postado Novembro 28, 2019 5 anos .Qual servidor ou website você utiliza como base? OTServBR-Global-master Qual o motivo deste tópico? Eu digito ./tfs para iniciar o Servidor, ele não consegue conectar na data base... Está surgindo algum erro? Se sim coloque-o aqui. Citar Você tem o código disponível? Se tiver publique-o aqui: -- MySQL mysqlHost = "localhost" mysqlUser = "Maycoz" mysqlPass = "maycow2020" mysqlDatabase = "u141354849_cmntb" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- MySQL mysqlHost = "localhost" mysqlUser = "root" mysqlPass = "**********" mysqlDatabase = "u141354849_cmntb" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" EEFETUEI UM TESTE TENTANDO CONECTAR NA DB VIA UM SITE QUE COMPREI PARA TESTAR, ELE NÃO CONECTA NA VPS... SEGUE O ERRO CANNOT CONNECT TO DATABASE: SQLSTATE[HY000] [2002] Connection refused Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui. Editado Novembro 28, 2019 5 anos por Deltaxx (veja o histórico de edições)
Postado Novembro 28, 2019 5 anos O servidor está na mesma VPS que seu servidor? Porque pelo nome do database, o database é de uma hospedagem.. mysqlDatabase = "u141354849_cmntb"
Postado Novembro 29, 2019 5 anos Autor 11 horas atrás, Wget disse: O servidor está na mesma VPS que seu servidor? Porque pelo nome do database, o database é de uma hospedagem.. mysqlDatabase = "u141354849_cmntb" Sim está no mesmo, coloquei esse nome para não precisar reconfigurar o config.lua Segue o config.lua -- Combat settings -- NOTE.: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced" worldType = "pvp" hotkeyAimbotEnabled = true protectionLevel = 80 pzLocked = 60 * 1000 removeChargesFromRunes = true removeChargesFromPotions = true removeWeaponAmmunition = true removeWeaponCharges = true timeToDecreaseFrags = 24 * 60 * 60 * 1000 whiteSkullTime = 10 * 60 * 1000 stairJumpExhaustion = 2 * 1000 experienceByKillingPlayers = false expFromPlayersLevelRange = 75 dayKillsToRedSkull = 6 weekKillsToRedSkull = 12 monthKillsToRedSkull = 20 redSkullDuration = 14 blackSkullDuration = 30 orangeSkullDuration = 1 -- Connection Config -- NOTE: maxPlayers set to 0 means no limit -- NOTE: MaxPacketsPerSeconds if you change you will be subject to bugs by WPE, keep the default value of 25 ip = "31.220.51.222" bindOnlyGlobalAddress = false loginProtocolPort = 7171 gameProtocolPort = 7172 statusProtocolPort = 7171 maxPlayers = 0 motd = "Bem vindo ao ComunityOT!" onePlayerOnlinePerAccount = true allowClones = false serverName = "ComunityOT" statusTimeout = 5 * 1000 replaceKickOnLogin = true maxPacketsPerSecond = 25000 maxItem = 4000 maxContainer = 300 -- Version Manual clientVersionMin = 1000 clientVersionMax = 1200 clientVersionStr = "Error" -- Depot Limit freeDepotLimit = 4000 premiumDepotLimit = 10000 depotBoxes = 17 -- GameStore gamestoreByModules = true -- Quest Sytem loadQuestLua = true -- Casting System enableLiveCasting = true liveCastPort = 7173 -- Expert Pvp Config expertPvp = false -- Deaths -- NOTE: Leave deathLosePercent as -1 if you want to use the default -- death penalty formula. For the old formula, set it to 10. For -- no skill/experience loss, set it to 0. deathLosePercent = -1 -- Houses -- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality housePriceEachSQM = 3000 houseRentPeriod = "never" -- Item Usage timeBetweenActions = 200 timeBetweenExActions = 500 -- Map -- NOTE: set mapName WITHOUT .otbm at the end mapName = "OtServer - BKP" mapAuthor = "ComunityOT" -- Market marketOfferDuration = 30 * 24 * 60 * 60 premiumToCreateMarketOffer = false checkExpiredMarketOffersEachMinutes = 60 maxMarketOffersAtATimePerPlayer = 100 -- MySQL mysqlHost = "localhost" mysqlUser = "root" mysqlPass = "********" mysqlDatabase = "u141354849_cmntb" mysqlPort = 3306 mysqlSock = "" passwordType = "sha1" -- Misc. allowChangeOutfit = true freePremium = true kickIdlePlayerAfterMinutes = 10 idleWarningTime = 10 * 60 * 1000 idleKickTime = 10 * 60 * 1000 maxMessageBuffer = 4 emoteSpells = true classicEquipmentSlots = false allowWalkthrough = true coinPacketSize = 1 coinImagesURL = "http://localhost/images/store/" classicAttackSpeed = false -- Rates -- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml rateExp = 1 rateSkill = 35 rateLoot = 2 rateMagic = 25 rateSpawn = 1 -- Monster rates rateMonsterHealth = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Monsters deSpawnRange = 2 deSpawnRadius = 50 -- Stamina staminaSystem = true -- Scripts warnUnsafeScripts = true convertUnsafeScripts = true -- Startup -- NOTE: defaultPriority only works on Windows and sets process -- priority, valid values are: "normal", "above-normal", "high" defaultPriority = "high" startupDatabaseOptimization = true -- Status server information ownerName = "ComunityOT" ownerEmail = "" url = "http://comunityot.esy.es/" location = "Brazil"
Postado Dezembro 1, 2019 5 anos Autor Problema resolvido... Era só colocar no config.lua na host em vez de localhost, colocar 127.0.0.1
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.