Jump to content
php.lv forumi

mysql_close();


9100646

Recommended Posts

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
Link to comment
Share on other sites

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

$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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

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

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

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

×
×
  • Create New...