Por favor erro ao criar Site no xampp "Can't connect to MySQL database."

felipe360
em Websites

felipe360

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/01/11Posts: 23Char no Tibia: Felipe Flashs

Ja criei um topico sobre isso mais como ninguem conseguil me ajudar estou criando de novo to com esse problema quando bo criar o xamp

por favor me ajudem :

 

 

Meu ConfigLua

 

namelockManager = true

newPlayerChooseVoc = true

newPlayerSpawnPosX = 2478

newPlayerSpawnPosY = 2447

newPlayerSpawnPosZ = 7

newPlayerTownId = 1

newPlayerLevel = 8

newPlayerMagicLevel = 1

generateAccountNumber = false

 

 

redSkullLength = 24 * 60 * 60

blackSkullLength = 45 * 24 * 60 * 60

dailyFragsToRedSkull = 3

weeklyFragsToRedSkull = 5

monthlyFragsToRedSkull = 10

dailyFragsToBlackSkull = dailyFragsToRedSkull

weeklyFragsToBlackSkull = weeklyFragsToRedSkull

monthlyFragsToBlackSkull = monthlyFragsToRedSkull

dailyFragsToBanishment = dailyFragsToRedSkull

weeklyFragsToBanishment = weeklyFragsToRedSkull

monthlyFragsToBanishment = monthlyFragsToRedSkull

blackSkulledDeathHealth = 40

blackSkulledDeathMana = 0

useBlackSkull = true

useFragHandler = true

advancedFragList = false

 

 

notationsToBan = 3

warningsToFinalBan = 4

warningsToDeletion = 5

banLength = 7 * 24 * 60 * 60

killsBanLength = 7 * 24 * 60 * 60

finalBanLength = 30 * 24 * 60 * 60

ipBanishmentLength = 1 * 24 * 60 * 60

broadcastBanishments = true

maxViolationCommentSize = 200

violationNameReportActionType = 2

autoBanishUnknownBytes = false

 

 

worldType = "pvp"

protectionLevel = 15

pvpTileIgnoreLevelAndVocationProtection = true

pzLocked = 60 * 1000

huntingDuration = 60 * 1000

criticalHitChance = 7

criticalHitMultiplier = 1

displayCriticalHitNotify = false

removeWeaponAmmunition = true

removeWeaponCharges = true

removeRuneCharges = true

whiteSkullTime = 15 * 60 * 1000

noDamageToSameLookfeet = false

showHealingDamage = true

showHealingDamageForMonsters = false

fieldOwnershipDuration = 5 * 1000

stopAttackingAtExit = true

oldConditionAccuracy = false

loginProtectionPeriod = 10 * 1000

deathLostPercent = 10

stairhopDelay = 2 * 1000

pushCreatureDelay = 2 * 1000

deathContainerId = 1987

gainExperienceColor = 215

addManaSpentInPvPZone = true

squareColor = 0

allowFightback = true

 

 

worldId = 0

ip = "127.168.1.1"

bindOnlyConfiguredIpAddress = false

loginPort = 7171

gamePort = 7172

adminPort = 7171

statusPort = 7171

loginTries = 10

retryTimeout = 5 * 1000

loginTimeout = 60 * 1000

maxPlayers = 1000

motd = "Welcome to the Dball!"

displayOnOrOffAtCharlist = false

onePlayerOnlinePerAccount = false

allowClones = false

serverName = "Golden"

loginMessage = "Welcome to the DBall!"

statusTimeout = 5 * 60 * 1000

replaceKickOnLogin = true

forceSlowConnectionsToDisconnect = false

loginOnlyWithLoginServer = false

premiumPlayerSkipWaitList = false

 

 

sqlType = "mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = "felipecosta2013"

sqlDatabase = "schemas/otserv"

sqlFile = "otserv.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "sha1"

 

 

deathListEnabled = true

deathListRequiredTime = 1 * 60 * 1000

deathAssistCount = 19

maxDeathRecords = 5

 

 

ingameGuildManagement = true

levelToFormGuild = 8

premiumDaysToFormGuild = 0

guildNameMinLength = 4

guildNameMaxLength = 20

 

 

highscoreDisplayPlayers = 15

updateHighscoresAfterMinutes = 60

 

 

buyableAndSellableHouses = true

houseNeedPremium = true

bedsRequirePremium = true

levelToBuyHouse = 1

housesPerAccount = 0

houseRentAsPrice = false

housePriceAsRent = false

housePriceEachSquare = 1000

houseRentPeriod = "never"

houseCleanOld = 0

guildHalls = false

 

-- Item usage

timeBetweenActions = 200

timeBetweenExActions = 1000

hotkeyAimbotEnabled = true

 

 

mapName = "DragonBall"

mapAuthor = "jhon992"

randomizeTiles = true

storeTrash = true

cleanProtectedZones = true

mailboxDisabledTowns = "-1"

 

 

defaultPriority = "high"

niceLevel = 5

coresUsed = "-1"

 

 

optimizeDatabaseAtStartup = true

removePremiumOnInit = true

confirmOutdatedVersion = false

 

 

formulaLevel = 5.0

formulaMagic = 1.0

bufferMutedOnSpellFailure = false

spellNameInsteadOfWords = false

emoteSpells = false

 

 

allowChangeOutfit = true

allowChangeColors = true

allowChangeAddons = true

disableOutfitsForPrivilegedPlayers = false

addonsOnlyPremium = true

 

 

dataDirectory = "data/"

bankSystem = true

displaySkillLevelOnAdvance = false

promptExceptionTracerErrorBox = true

separateViplistPerCharacter = false

maximumDoorLevel = 500

maxMessageBuffer = 4

 

 

saveGlobalStorage = true

useHouseDataStorage = false

storePlayerDirection = false

 

 

checkCorpseOwner = true

monsterLootMessage = 3

monsterLootMessageType = 25

 

ghostModeInvisibleEffect = false

ghostModeSpellEffects = true

 

 

idleWarningTime = 14 * 60 * 1000

idleKickTime = 15 * 60 * 1000

expireReportsAfterReads = 1

playerQueryDeepness = 2

maxItemsPerPZTile = 0

maxItemsPerHouseTile = 0

 

 

freePremium = false

premiumForPromotion = true

 

 

blessingOnlyPremium = true

blessingReductionBase = 30

blessingReductionDecreament = 5

eachBlessReduction = 8

 

 

experienceStages = false

rateExperience = 0

rateExperienceFromPlayers = 0

rateSkill = 3.0

rateMagic = 3.0

rateLoot = 2.0

rateSpawn = 1

 

 

rateMonsterHealth = 1.0

rateMonsterMana = 1.0

rateMonsterAttack = 1.0

rateMonsterDefense = 1.0

 

minLevelThresholdForKilledPlayer = 0.9

maxLevelThresholdForKilledPlayer = 1.1

 

 

 

rateStaminaLoss = 1

rateStaminaGain = 3

rateStaminaThresholdGain = 12

staminaRatingLimitTop = 41 * 60

staminaRatingLimitBottom = 14 * 60

rateStaminaAboveNormal = 1.5

rateStaminaUnderNormal = 0.5

staminaThresholdOnlyPremium = true

 

experienceShareRadiusX = 30

experienceShareRadiusY = 30

experienceShareRadiusZ = 1

experienceShareLevelDifference = 2 / 3

extraPartyExperienceLimit = 20

extraPartyExperiencePercent = 5

experienceShareActivity = 2 * 60 * 1000

 

 

globalSaveEnabled = false

globalSaveHour = 8

shutdownAtGlobalSave = true

cleanMapAtGlobalSave = false

 

 

deSpawnRange = 2

deSpawnRadius = 50

 

 

maxPlayerSummons = 2

teleportAllSummons = false

teleportPlayerSummons = false

 

 

ownerName = ""

ownerEmail = "@otland.net"

url = "http://otland.net/"

location = "Europe"

displayGamemastersWithOnlineCommand = false

 

 

adminLogsEnabled = false

displayPlayersLogging = true

prefixChannelLogs = ""

runFile = ""

outLogName = ""

errorLogName = ""

truncateLogsOnStartup = false

 

A data base ta com mesmo nome do arquivo sql por favor alguem me ajuda me add face http://www.facebook.com/felipe.costa.7927

NyckAlmeida

De tudo um pouco :P
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/08/12Posts: 73Gênero: MasculinoChar no Tibia: Knight

Vc ja adicionou a database no http://localhost/phpmyadmin/ ?

Luquinh4

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 19/02/13Posts: 285

sqlDatabase = "schemas/otserv"

 

 

Nessa parte você precisa por o nome da database que você está usando no http://localhost/phpmyadmin/

 

Exemplo

 

sqlDatabase = "global"

Dp9Y7vq.png

 

ThiagoBji

Blindão
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/12Posts: 789

Vou explicar o quê você tem que fazer:

 

sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = "felipecosta2013" - Senha que você entra no phpmyadmin
sqlDatabase = "schemas/otserv" - Nome da database que você criou
sqlFile = "otserv.s3db" - Repita ela aqui
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "sha1"

 

Simples.

thiagobji.jpg

Contato FACE: FaceBook.com/Thiagobji | Skype: Thiagobji2

Atenciosamente, Thiagobji.

felipe360

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/01/11Posts: 23Char no Tibia: Felipe Flashs

Ja criei a Data base ja mudei oque voce pediu

ThiagoBjiW e ja fiz oque voce pediu Luquinh4

 

soque nao ta adiantando por favor me ajudem ae

ThiagoBji

Blindão
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/12Posts: 789

Quando você entra no localhost/phpmyadmin, ele pede login e senha pra entrar? (O login já vem, que no caso, é root)

Ou ele entra direto? Sem pedir?

 

Outra coisa, teria como você tirar foto da database (localhost/phpmyadmin) você dentro dela pra eu ver? Obrigado!

thiagobji.jpg

Contato FACE: FaceBook.com/Thiagobji | Skype: Thiagobji2

Atenciosamente, Thiagobji.

NyckAlmeida

De tudo um pouco :P
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 05/08/12Posts: 73Gênero: MasculinoChar no Tibia: Knight

Acho que ja sei :

sqlType = "mysql"

sqlHost = "localhost"

sqlPort = 3306

sqlUser = "root"

sqlPass = "felipecosta2013"

sqlDatabase = "schemas/otserv" --Tira o "schemas/" e so deixa o "otserver"--

sqlFile = "otserv.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

encryptionType = "sha1"

felipe360

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/01/11Posts: 23Char no Tibia: Felipe Flashs

velho ja fiz tudo oque voces me falaram eu ja criei a data base e tals soque nao ta dando.

olha minha database

post-295610-0-97971800-1365957400_thumb.png

Luquinh4

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 19/02/13Posts: 285
sqlType = "mysql"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = "felipecosta2013"
sqlDatabase = "otserv"
sqlFile = "otserv.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
mysqlWriteTimeout = 10
encryptionType = "sha1"

Dp9Y7vq.png

 

ThiagoBji

Blindão
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/12Posts: 789

(Xvídeos né safadinho, ahuaha)

 

Quando você entra no localhost/phpmyadmin, já entra direto ou aparece essa tela aqui

 

phpmyadminb.jpg

thiagobji.jpg

Contato FACE: FaceBook.com/Thiagobji | Skype: Thiagobji2

Atenciosamente, Thiagobji.

felipe360

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/01/11Posts: 23Char no Tibia: Felipe Flashs

velho meu configlua esta desse jeito soque nao vai alguem me ajuda ae

 

(Xvídeos né safadinho, ahuaha)

 

Quando você entra no localhost/phpmyadmin, já entra direto ou aparece essa tela aqui

 

phpmyadminb.jpg

entra direto pq? kkkkkk nuss nem percebi o xvideos

ThiagoBji

Blindão
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/12Posts: 789

Afffssssss! Esse é o erro! Sabia que você tinha feito algo errado.

Vá nesse link -> http://localhost/security/xamppsecurity.php

 

Cria sua senha e logo após criar, aperte enter. Depois vá no seu XAMPP Controle, clica em STOP no MYSQL, e depois clica em START no MYSQL.

Pronto! Problema resolvido :)

thiagobji.jpg

Contato FACE: FaceBook.com/Thiagobji | Skype: Thiagobji2

Atenciosamente, Thiagobji.

felipe360

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/01/11Posts: 23Char no Tibia: Felipe Flashs

Vlw gente deu certo mt obrigado nao sei se ajuda pois sou novo no xtibia mais vou da +reputaçao

ThiagoBji

Blindão
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 30/10/12Posts: 789

Não há de quê. Não se preocupe com isso! Estamos aqui pra tirar as dúvidas de todos! Qualquer coisa, tamo ai :)

Boa sorte com seu server!

thiagobji.jpg

Contato FACE: FaceBook.com/Thiagobji | Skype: Thiagobji2

Atenciosamente, Thiagobji.

Alexclusive

Um bom Veterano...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 25/10/12Posts: 2399Gênero: MasculinoChar no Tibia: Nuncative

Movido p/ área de pedidos e duvidas resolvidos!

 

CURTA O FACEBOOK DO Ekz.

graphic_design.png  Seja um incentivador de pessoas. O mundo já tem críticos demais.  hardware_19.png