Jump to content
php.lv forumi

Recommended Posts

Posted (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 by 9100646
Posted

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ē).

Posted (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 by mounkuls
Posted (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 by 9100646
Posted (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 by mounkuls
Posted

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

Posted

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.

Posted

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

Posted

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 ;(

Posted

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.

Posted (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 by mounkuls
Posted (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 by mounkuls
×
×
  • Create New...