xfr33 Posted October 8, 2011 Report Share Posted October 8, 2011 Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/akcijukl/public_html/roocopy/mysql/connect.php on line 8 Lost connection to MySQL server at 'reading initial communication packet', system error: 111 Kāds var izskaidrot, kas tā ir par kļūdu un kā to labot? Quote Link to comment Share on other sites More sharing options...
andism88 Posted October 8, 2011 Report Share Posted October 8, 2011 tā ir kļūda kas atrodas uz connect.php 8 līnijas :D Un tā ir?? Quote Link to comment Share on other sites More sharing options...
xfr33 Posted October 8, 2011 Author Report Share Posted October 8, 2011 connect.php 8 līnija ir parastākā konekcija mysql datubāzei. <?php $host = "kkadshostings"; $sqlusername = "kkadsusername"; $sqlpassword = "parole"; $db = "datubaze"; $conn = mysql_connect("$host", "$sqlusername", "$sqlpassword")or die(mysql_error()); mysql_select_db("$db")or die("cannot select DB"); mysql_query( "SET NAMES UTF8", $conn); ?> Quote Link to comment Share on other sites More sharing options...
Kemito Posted October 8, 2011 Report Share Posted October 8, 2011 (edited) <?php $host = "kkadshostings"; $sqlusername = "kkadsusername"; $sqlpassword = "parole"; $db = "datubaze"; mysql_connect($host, $sqlusername, $sqlpassword)or die(mysql_error()); mysql_select_db($db)or die("cannot select DB"); mysql_query( "SET NAMES UTF8"); ?> Pamēģini šādi: <?php $host = "kkadshostings"; $sqlusername = "kkadsusername"; $sqlpassword = "parole"; $db = "datubaze"; mysql_connect($host, $sqlusername, $sqlpassword)or die(mysql_error()); mysql_select_db($db)or die("cannot select DB"); mysql_query( "set names utf8"); ?> Edited October 8, 2011 by Kemito Quote Link to comment Share on other sites More sharing options...
daGrevis Posted October 8, 2011 Report Share Posted October 8, 2011 http://forums.mysql.com/read.php?52,152265,152265 Quote Link to comment Share on other sites More sharing options...
xfr33 Posted October 9, 2011 Author Report Share Posted October 9, 2011 http://forums.mysql....2,152265,152265 Tas īsti nepalīdz, jo nevienu tur parādīto failu un hosta ar kuru stradāju nevaru atrast. Quote Link to comment Share on other sites More sharing options...
xfr33 Posted October 9, 2011 Author Report Share Posted October 9, 2011 Problēma atrisināta :) Paldies Quote Link to comment Share on other sites More sharing options...
briedis Posted October 9, 2011 Report Share Posted October 9, 2011 Un kāds bija risinājums? Quote Link to comment Share on other sites More sharing options...
xfr33 Posted October 9, 2011 Author Report Share Posted October 9, 2011 Un kāds bija risinājums? Risinājums: hostinga serveris bija localhost nevis adrese, kas man personīgi likās saprotamāka, piemēram, pagezone.lv Nezinu kāpēc tā tas ir uzstādīts, bet kursa biedrs šādu risinājumu iedeva un aizgāja. 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.