9100646 Posted May 26, 2008 Report Share Posted May 26, 2008 (edited) Sveiki tatad uztaisiiju Cs monitora skriptu peec shiis pamaaciibas http://www.gign.lv/forum/index.php?showtop...amp;hl=Monitors Izmantoju PhpFusion Izveidoju jaunu paneli , ievietoju kodu openside("Monitor"); include(BASEDIR."monitor.php"); closeside(); Bet kad uzspiezu Preview tad vins man izmet shaadu kluudu Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO) Warning: mysql_close(): no MySQL-Link resource supplied in C:\AppServ\www\footer.php on line 25 Uz 25 Rindinjas man ir mysql_close(); Edited May 26, 2008 by 9100646 Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 Nuu... vispār jau nav savienojuma, kuru aizvērt, ja neesi pat pielaists konektēties pie datubāzes... Grūti spriest, bet liekas neesi kādā konfig failā norādijis datus pieslēgumam bāzei(negribu lasīt pamācību kautkam, kas mani neinteresē). Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 Tur tak nav ko lasiit 1 min ko parmest aci :/ Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 (edited) $hosts = "localhost"; //db hosts $lietotajs = "root"; //db useris $parole = "1337";" //db parole $db = "monitor"; //db so te izpildiji normāli? Vispār jau root lietotājam parole bija laikam tukša ja instalējot nenorādi. Edited May 26, 2008 by mounkuls Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 (edited) aizpildiiju shaadi $hosts = "localhost"; //db hosts $lietotajs = "root"; //db useris $parole = "manaparole";" //db parole $db = "monitor"; //db db uztasiiju arii ar nosaukumu monitor Edited May 26, 2008 by 9100646 Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 (edited) Error paziņojums saka, ka nav tiesību pieslēgties datubāzei. Tas tā vispārīgi. Using password:NO.... hmmm to $parole=''; //atstāj tukšu. Ko tad lamājas? Tabulaas sataisiji? Edited May 26, 2008 by mounkuls Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 tad kad paroli atstaaju tuksu tad raada sho Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\AppServ\www\monitor.php on line 10 Nesanaca piekonekteties db Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 aha.. tad jau paroli esi uzlicis mysql. mysql_close() nav nekas nepareizs. Var iztikt arī bez, jo tas notiek automātiski ja nav pconnect bāzei, cik atceros. Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 ko tad man iesaakt :D ? Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 skaidri nezinu. $parole='manaparole'; liec atpakaļ. To mysql_close(); vari arī nelietot, mysql tāpat zin savienojumu aizvērt. Tas gan neliekas tas īstais vainas apstāklis Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 Ok uzliku atpakal paroli , nodzeesu nost to mysql_close(); , tagad neraada ka kluuda on line 24 , bet raada sho :D Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO)Access denied for user 'ODBC'@'localhost' (using password: NO) Kautkaads bezsakars manliekas ;( Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 Rekur es atradu vienaa forumaa postu varbuut man to izdariit ? Idiots! Everyone has this problem, but don't be worried, it's easy to fix. First, remove MYSQL. Yes, remove mysql, because you'll have to to make the next step work. The problem almost always spans from people not having installed myodbc 3.51 driver. So, download myodbc 3.51 from this site, install it before mysql, and then install mysql over the top. This will solve you're problem, you may have to go into start, control pannel, administrative tools, services, and restart mysql service, and make sure it is set to automatic. Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 (edited) skaidri nezinu, bet nu root jūzerim man liekas paroles nav. datubāzei nenorādiji kadu citu username? ak jā, pēc izmaiņām serveri vajag restartēt laikam. es gan tā arī nezinu uz kādas OS strādā tas viss... Edited May 26, 2008 by mounkuls Link to comment Share on other sites More sharing options...
9100646 Posted May 26, 2008 Author Report Share Posted May 26, 2008 (edited) OS = WINDOWS Edited May 26, 2008 by 9100646 Link to comment Share on other sites More sharing options...
mounkuls Posted May 26, 2008 Report Share Posted May 26, 2008 (edited) Nevarēšu palīdzēt laikam.... gaidam rītu:( Principā jau ar to pašu login un paroli php arī vajadzēja varēt pieslēgties bāzei.... Uz win defoltajā root lietotājam parole ir tukša, laikam. Bet pa cik tas atgrieza error ka nevar konektēt, vaina nav laikam tur. Edited May 26, 2008 by mounkuls Link to comment Share on other sites More sharing options...
Recommended Posts