EdgarsK Posted January 28, 2010 Report Share Posted January 28, 2010 mysql_conntect("localhost:3306","root",""); Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'localhost ' (11001) - ko darit ? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 28, 2010 Report Share Posted January 28, 2010 paprovē bez porta.. Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted January 28, 2010 Author Report Share Posted January 28, 2010 (edited) :) to jau mēģīnāju Edited January 28, 2010 by EdgarsA Quote Link to comment Share on other sites More sharing options...
briedis Posted January 28, 2010 Report Share Posted January 28, 2010 Figviņzin :) Tev tas lokāli? Moš mysql serveris nav normāli piestartējies... Restartēji serveri? Kompi? Googlē top rezultātos ar nekas prātīgs nav uz šito... Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 28, 2010 Report Share Posted January 28, 2010 A ko tu gribi, lai vinjsh iesaka, ja tu esi randoma iemetis vienu rindinu neko nepaskaidrojot? Tas ports nav jaraksta, jo by default MySQL servera ports ir 3306. Ja tas nav uz tava PC, tad skaties hostinga majaslapa kaa piesleegties MySQL serverim. Ne vienmer tas bus localhost. Ja tas ir uz tava PC, tad vari meegjinaat 127.0.0.1 Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted January 28, 2010 Author Report Share Posted January 28, 2010 ak dievs :) portu pieliku jo bez vinja negaja - cereju ka ies. sodien tikau uzliku - tas ir xampp - ja lokali dalja no my.ini [client] #user = your_username #password = your_password host = . port = 3306 socket = "MySQL" visam butu jasance, bet mosh kkadas sakarigaaakas idejas ? :/ es tomer saprotu kas ir mysql un ka pieslegties.. pff nesmu :D tas chalis vakar :D atceries ratij ? :D Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted January 28, 2010 Author Report Share Posted January 28, 2010 problēma - mysql_connect("localhost"...); -> error mysql_connect("127.0.0.1"...); -> goes ok.. Quote Link to comment Share on other sites More sharing options...
briedis Posted January 28, 2010 Report Share Posted January 28, 2010 (edited) heh, a es atkal nevaru pieslēgties sev šitā: http://localhost/, bet varu tikai http://127.0.0.1/ (web serverim) Edited January 28, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 28, 2010 Report Share Posted January 28, 2010 nesmu :D tas chalis vakar :D atceries ratij ? :D Sorry, bet tieshaam nezinu kas man jaatceraas :P Nu re - ja jau 127.0.0.1 iet, tad jau viss OK. :) Lapas uz localhost adreses iet? Ja ne, tad hosts faila ir jaieraksta: 127.0.0.1 localhost Ja iet, tad hvz kas pa vainu. Gan jau kaut kaadas konfiguraacijas vai kka ta... Quote Link to comment Share on other sites More sharing options...
EdgarsK Posted January 29, 2010 Author Report Share Posted January 29, 2010 taa dumi sanaca, es tikai velak aizdomajos. 1) man ir savs interenets 2) es piesledzos darbam caur vpn 3) es iesledzu localhost xampp serveriti un automatiski localhosts skaitas vpn galamerkis attiecigi :) jaliek 127.0.0.1 kas norada uz tiesho pc, jo vpn parraksta localhost uz vpn galamertja localhostu kautkur nesen dzirdeju lai nelieto localhost ka mysql server connect bet lai raksta 127.0.0.1 pameiginaju uz :) tiesam strada. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.