Postado Julho 8, 2016 8 anos 11 horas atrás, Matth97 disse: está dando este erro... [21:16:54.904] Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003) [21:16:54.912] > ERROR: Couldn't estabilish connection to SQL database! Acho que é porque meu servidor não tem site, oque fazer ? tem como dar detalhes ? No config lua ele está como mysql, se está como mysql você precisa de uma database mysql, usando uniserver ou xampp como eu disse anteriormente. Pode alterar no config lua pra sqlite e apontar para o arquivo que estava usando, como antes, só não sei se o warsystem vai funcionar em sqlite.
Postado Julho 8, 2016 8 anos Autor 2 horas atrás, DukeeH disse: No config lua ele está como mysql, se está como mysql você precisa de uma database mysql, usando uniserver ou xampp como eu disse anteriormente. Pode alterar no config lua pra sqlite e apontar para o arquivo que estava usando, como antes, só não sei se o warsystem vai funcionar em sqlite. usei o xampp, coloquei uma database mysql, mudei p mysql mas agora da um outro erro na config.lua vou tentar resolver depois posto ai
Postado Julho 8, 2016 8 anos 8 minutos atrás, Matth97 disse: usei o xampp, coloquei uma database mysql, mudei p mysql mas agora da um outro erro na config.lua vou tentar resolver depois posto ai naquele erro que passou ele diz que não tem uma database mysql rodando, então você não está com o xampp aberto ou não configurou senha ou importou a schema no mysql. localhost/phpmyadmin para abrir a pagina, ai entra com a senha configurada cria uma database e importa o arquivo que esta na pasta schema
Postado Julho 8, 2016 8 anos Autor Em 08/07/2016 at 11:25, DukeeH disse: naquele erro que passou ele diz que não tem uma database mysql rodando, então você não está com o xampp aberto ou não configurou senha ou importou a schema no mysql. localhost/phpmyadmin para abrir a pagina, ai entra com a senha configurada cria uma database e importa o arquivo que esta na pasta schema ERRO: Spoiler [11:46:15.419] The Forgotten Server 0.4 [11:46:15.419] >> Loading config (config.lua) [11:46:15.419] >> Opening logs [11:46:15.435] > Using plaintext encryption [11:46:15.435] >> Loading RSA key [11:46:15.435] >> Starting SQL connection [11:46:16.526] Failed connecting to database - MYSQL ERROR: Can't connect to MySQL server on 'localhost' (10061) (2003) [11:46:16.556] > ERROR: Couldn't estabilish connection to SQL database! Config.lua Spoiler -- The Forgotten Server Config -- Account manager accountManager = true namelockManager = true newPlayerChooseVoc = true newPlayerSpawnPosX = 160 newPlayerSpawnPosY = 51 newPlayerSpawnPosZ = 7 newPlayerTownId = 1 newPlayerLevel = 8 newPlayerMagicLevel = 1 generateAccountNumber = false -- Unjustified kills -- NOTE: *Banishment and *BlackSkull variables are >summed up< -- (dailyFragsToRedSkull + dailyFragsToBanishment) with their -- *RedSkull equivalents. -- Auto banishing works only if useBlackSkull set to negative. -- advancedFragList is not advised if you use huge frags -- requirements. redSkullLength = 1 * 24 * 60 * 60 blackSkullLength = 2 * 24 * 60 * 60 dailyFragsToRedSkull = 20 weeklyFragsToRedSkull = 80 monthlyFragsToRedSkull = 100 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = false -- Banishments -- violationNameReportActionType 1 = just a report, 2 = name lock, 3 = player banishment -- killsBanLength works only if useBlackSkull option is disabled. notationsToBan = 3 warningsToFinalBan = 4 warningsToDeletion = 5 banLength = 1 * 24 * 60 * 60 killsBanLength = 1 * 24 * 60 * 60 finalBanLength = 1 * 24 * 60 * 60 ipBanishmentLength = 1 * 24 * 60 * 60 broadcastBanishments = true maxViolationCommentSize = 200 violationNameReportActionType = 2 autoBanishUnknownBytes = false -- Battle -- NOTE: showHealingDamageForMonsters inheritates from showHealingDamage. -- loginProtectionPeriod is the famous Tibia anti-magebomb system. -- deathLostPercent set to nil enables manual mode. worldType = "pvp" protectionLevel = 80 pvpTileIgnoreLevelAndVocationProtection = true pzLocked = 1000 * 10 huntingDuration = 1000 * 10 criticalHitChance = 7 criticalHitMultiplier = 1 displayCriticalHitNotify = true removeWeaponAmmunition = false removeWeaponCharges = false removeRuneCharges = false whiteSkullTime = 5 * 60 * 1000 noDamageToSameLookfeet = false showHealingDamage = True showHealingDamageForMonsters = True fieldOwnershipDuration = 5 * 1000 stopAttackingAtExit = false oldConditionAccuracy = false loginProtectionPeriod = 10 * 1000 deathLostPercent = 10 stairhopDelay = 1 * 500 pushCreatureDelay = 1 * 1000 deathContainerId = 1993 gainExperienceColor = 215 addManaSpentInPvPZone = true squareColor = 22 allowFightback = true -- Connection config worldId = 0 ip = "127.0.0.1" bindOnlyConfiguredIpAddress = false loginPort = 7171 gamePort = 7172 adminPort = 7171 statusPort = 7171 loginTries = 10 retryTimeout = 5 * 1000 loginTimeout = 60 * 1000 maxPlayers = 999 motd = "Seja bem vindo ao novo Styller, divirta-se." displayOnOrOffAtCharlist = false onePlayerOnlinePerAccount = true allowClones = false serverName = "Next" loginMessage = "Bem vindo ao novo Styller 100%." statusTimeout = 5 * 60 * 1000 replaceKickOnLogin = true forceSlowConnectionsToDisconnect = false loginOnlyWithLoginServer = false premiumPlayerSkipWaitList = false -- Database -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database. -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value. sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "123456" sqlDatabase = "database" sqlFile = "Styller.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" -- Deathlist deathListEnabled = false deathListRequiredTime = 1 * 60 * 1000 deathAssistCount = 19 maxDeathRecords = 20 -- Guilds ingameGuildManagement = true levelToFormGuild = 50 premiumDaysToFormGuild = 0 guildNameMinLength = 4 guildNameMaxLength = 20 -- Highscores highscoreDisplayPlayers = 50 updateHighscoresAfterMinutes = 3 -- Houses buyableAndSellableHouses = true houseNeedPremium = true bedsRequirePremium = true levelToBuyHouse = 60 housesPerAccount = 0 houseRentAsPrice = false housePriceAsRent = false housePriceEachSquare = 5000 houseRentPeriod = "never" houseCleanOld = 0 guildHalls = false -- Item usage timeBetweenActions = 200 timeBetweenExActions = 1000 checkCorpseOwner = true hotkeyAimbotEnabled = true maximumDoorLevel = 500 -- Map -- NOTE: storeTrash costs more memory, but will perform alot faster cleaning. -- useHouseDataStorage usage may be found at README. mapName = "Styller" mapAuthor = "Matheus" randomizeTiles = true useHouseDataStorage = false storeTrash = true cleanProtectedZones = true mailboxDisabledTowns = "-1" -- Startup -- NOTE: defaultPriority works only on Windows and niceLevel on *nix -- coresUsed are seperated by comma cores ids used by server process, -- default is -1, so it stays untouched (automaticaly assigned by OS). defaultPriority = "high" niceLevel = 5 coresUsed = "-1" optimizeDatabaseAtStartup = true removePremiumOnInit = true confirmOutdatedVersion = false -- Muted buffer maxMessageBuffer = 6 bufferMutedOnSpellFailure = false -- Miscellaneous -- NOTE: promptExceptionTracerErrorBox works only with precompiled support feature, -- called "exception tracer" (__EXCEPTION_TRACER__ flag). -- monsterLootMessage 0 to disable, 1 - only party, 2 - only player, 3 - party or player (like Tibia's) dataDirectory = "data/" allowChangeOutfit = true allowChangeColors = true allowChangeAddons = true disabutfitsForPrivilegedPlayers = false bankSystem = true saveGlobalStorage = true displaySkillLevelOnAdvance = false spellNameInsteadOfWords = false emoteSpells = true promptExceptionTracerErrorBox = true storePlayerDirection = false monsterLootMessage = 3 monsterLootMessageType = 25 separateViplistPerCharacter = false -- Ghost mode ghostModeInvisibleEffect = false ghostModeSpellEffects = true -- Limits idleWarningTime = 30 * 60 * 1000 idleKickTime = 60 * 60 * 1000 expireReportsAfterReads = 1 playerQueryDeepness = 2 maxItemsPerPZTile = 0 maxItemsPerHouseTile = 0 -- Premium-related freePremium = true premiumForPromotion = true -- Blessings -- NOTE: blessingReduction* regards items/containers loss. -- eachBlessReduction is how much each bless reduces the experience/magic/skills loss. blessingOnlyPremium = False blessingReductionBase = 30 blessingReductionDecreament = 5 eachBlessReduction = 8 -- Rates -- NOTE: experienceStages configuration is located in data/XML/stages.xml. -- rateExperienceFromPlayers 0 to disable. experienceStages = true rateExperience = 150 rateExperienceFromPlayers = 0 rateSkill = 30 rateMagic = 20 rateLoot = 2.3 rateSpawn = 2 -- Monster rates rateMonsterHealth = 1.0 rateMonsterMana = 1.0 rateMonsterAttack = 1.0 rateMonsterDefense = 1.0 -- Experience from players -- NOTE: min~Threshold* set to 0 will disable the minimum threshold: -- player will gain experience from every lower leveled player. -- max~Threshold* set to 0 will disable the maximum threshold: -- player will gain experience from every higher leveled player. minLevelThresholdForKilledPlayer = 0.9 maxLevelThresholdForKilledPlayer = 1.1 -- Stamina -- NOTE: Stamina is stored in miliseconds, so seconds are multiplied by 1000. -- rateStaminaHits multiplies every hit done a creature, which are later -- multiplied by player attack speed. -- rateStaminaGain is divider of every logged out second, eg: -- 60000 / 3 = 20000 milliseconds, what gives 20 stamina seconds for 1 minute being logged off. -- rateStaminaThresholdGain is divider for the premium stamina. -- staminaRatingLimit* is in minutes. rateStaminaLoss = 1 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 41 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = true -- Party -- NOTE: experienceShareLevelDifference is float number. -- experienceShareLevelDifference is highestLevel * value experienceShareRadiusX = 30 experienceShareRadiusY = 30 experienceShareRadiusZ = 1 experienceShareLevelDifference = 2 / 3 extraPartyExperienceLimit = 20 extraPartyExperiencePercent = 5 experienceShareActivity = 2 * 60 * 1000 -- Global save -- NOTE: globalSaveHour means like 03:00, not that it will save every 5 hours, -- if you want such a system please check out data/globalevents/globalevents.xml. globalSaveEnabled = true globalSaveHour = 10 shutdownAtGlobalSave = true cleanMapAtGlobalSave = true -- Spawns deSpawnRange = 2 deSpawnRadius = 50 -- Summons maxPlayerSummons = 2 teleportAllSummons = True teleportPlayerSummons = True -- Status ownerName = "Nextyller" ownerEmail = "[email protected]" url = "facebook.com/Nextyller" location = "Brazil" displayGamemastersWithOnlineCommand = false -- Logs -- NOTE: This kind of logging does not work in GUI version. -- For such, please compile the software with __GUI_LOGS__ flag. adminLogsEnabled = false displayPlayersLogging = true prefixChannelLogs = "" runFile = "" outLogName = "" errorLogName = "" truncateLogsOnStartup = false Minha database no mysql: Spoiler Editado Julho 11, 2016 8 anos por Matth97 (veja o histórico de edições)
Postado Julho 8, 2016 8 anos -- Database -- NOTE: sqlFile is used only by sqlite database, and sqlKeepAlive by mysql database. -- To disable sqlKeepAlive such as mysqlReadTimeout use 0 value. sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "123456" sqlDatabase = "database" sqlFile = "" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "sha1" Não aparenta ter erro, mas tenta usar igual está acima. Abre o xampp, deixa o apache e mysql rodando e tenta abrir o server, mande foto se der algum erro. ps: não usar uma senha tão simples se você pensa em deixar o ot on para outras pessoas. Editado Julho 8, 2016 8 anos por DukeeH (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.