archixz Posted January 12, 2006 Report Share Posted January 12, 2006 man ir problēma ar index.php uzstādīsanu izveidoju failu index.php un iekopēju doto <?php $host = "localhost"; $user = 'root'; $pass = '1234555'; $link = mysql_connect($host, $user, $pass); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Connected successfully<br>Pieejams datu baazes:<br>'; $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_row($db_list)) { echo $row[0]."<br>"; } mysql_close($link); ?> Vai aktivizējot index.php būtu šajā gadījumā kaut kam jāparādās? un kas man jāraxta pie pieejamās datu bāzes? (mysql esmu ieinstelējis) Es neko vēl nemāku , tapēc nedusmojaties ka uzdodu muļķīgus jautajumus. Link to comment Share on other sites More sharing options...
Vebers Posted January 12, 2006 Report Share Posted January 12, 2006 Vaidzētu parādīties: Pieejamās darubāzes:mysql test Pie pieejamās datubāzes vari rakstīt "test" vai vari izveidot jaunu datubāzi. Link to comment Share on other sites More sharing options...
archixz Posted January 12, 2006 Author Report Share Posted January 12, 2006 bļin kad palaižu index.php caur firefox tas sāk kārties un explorer vispār never vaļā šo vailu. kas varētu būt pa vainu? varētu iemest izlabotu skriptu būtu pateicīgs. un kā vispar palaist mysql? Link to comment Share on other sites More sharing options...
Vebers Posted January 12, 2006 Report Share Posted January 12, 2006 Skripts jau ir pareizs! Tikai k-ko dari nepareizi (es nezinu ko, bet..) MySQL jau tiek startēts kopā ar kompi, atsevišķi katru reizi nav viņš japalaiž. Link to comment Share on other sites More sharing options...
archixz Posted January 13, 2006 Author Report Share Posted January 13, 2006 Man neparādās , mysql kad tiek ieslēgts kompis. tam itkā būtu jāparādās pie pulkstens? Link to comment Share on other sites More sharing options...
Vebers Posted January 13, 2006 Report Share Posted January 13, 2006 Ctrl + Alt + Delete , tad uzklikšķini uz tabulu "Processes" un ja tur atrodi kaut ko līdzīgu tekstam "mysqld-nt.exe", tad MySQL darbojas. Link to comment Share on other sites More sharing options...
bubu Posted January 13, 2006 Report Share Posted January 13, 2006 MakaTaNaw: Ctrl+Shift+Esc jāspiež. Link to comment Share on other sites More sharing options...
Vebers Posted January 13, 2006 Report Share Posted January 13, 2006 bubu: bet ar Ctrl + Alt + Delete arī darbojas. Link to comment Share on other sites More sharing options...
Paulinjsh Posted January 13, 2006 Report Share Posted January 13, 2006 Nu var arī ctrl + alt + delete, bet nu kā jau bubu teica ar ctrl + shift + esc būs fiksāks :) Link to comment Share on other sites More sharing options...
bubu Posted January 13, 2006 Report Share Posted January 13, 2006 bubu: bet ar Ctrl + Alt + Delete arī darbojas. Un pele uz taskbara ar labo klišķi izvēloties Task Manager arī darbojas, bet vai tas ir ātrāk un ērtāk? :) Link to comment Share on other sites More sharing options...
Vebers Posted January 13, 2006 Report Share Posted January 13, 2006 Es pārējos veidus nebiju dzirdējis, tāpēc man ir ērtāk ar Ctrl + Alt + Delete., jo pie visa jaunā ir jāpiešaujas :) Cik cilvēku tik viedokļu ;) Link to comment Share on other sites More sharing options...
march Posted January 13, 2006 Report Share Posted January 13, 2006 man atverot to php failu parādās uzraksts: Fatal error: Call to undefined function mysql_connect() in c:\program files\apache group\Apache\htdocs\mysql.php on line 5 php skripts tas pats augstāk publicētais Link to comment Share on other sites More sharing options...
Klez Posted January 13, 2006 Report Share Posted January 13, 2006 php5 tev nau gadiijumaa ? šeit paskatījies? Link to comment Share on other sites More sharing options...
Vebers Posted January 13, 2006 Report Share Posted January 13, 2006 Nav atkomentēts iekš php.ini rindiņa extension=php_mysql.dll Tas ir jānovāc nost tas semikols. Link to comment Share on other sites More sharing options...
march Posted January 14, 2006 Report Share Posted January 14, 2006 visus semikolus novācu, bet startējoties apachei uzmet errorus, ka nevienu no tiem atkomentētajiem failiem nevar atrast. Faili bija php/ext/ mapē, tagad pārkopēju arī uz php mapi, bet vienalga nevar atrast Link to comment Share on other sites More sharing options...
Recommended Posts