Ir para conteúdo

Featured Replies

Postado

.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

Screenshot_2.thumb.png.46d6defd3ca2f660b12dba0a8bca3d30.png

 

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. 

Screenshot_2.thumb.png.46d6defd3ca2f660b12dba0a8bca3d30.png

 

Editado por Deltaxx (veja o histórico de edições)

Postado

O servidor está na mesma VPS que seu servidor?

Porque pelo nome do database, o database é de uma hospedagem..

mysqlDatabase = "u141354849_cmntb"

 

Postado
  • 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

image.thumb.png.8267377d6e7261a167a286f0866042a3.png

 

 

image.thumb.png.8267377d6e7261a167a286f0866042a3.png

 

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"

 

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