Re: lug-bg: problem: php/apache/mysql
- Subject: Re: lug-bg: problem: php/apache/mysql
- From: P.Kirkov@xxxxxxxxxxx (Peter Kirkov)
- Date: Thu, 29 Aug 2002 19:59:01 +0300
Podoben sluchai imah pod Solaris, kogato MySQL beshe kompiliran ne sas
tezi bilioteki, koito imah na mashinata, a sas drugi versii. Vij tova
i ako triabva compilirai nanovo.
HTH
Peter
Hello Ivan,
Thursday, August 29, 2002, 6:15:27 PM, you wrote:
Ivan Dimitrov> <?
Ivan Dimitrov> $dbh = mysql_connect('localhost','root','parola') or die("FUCK");
Ivan Dimitrov> $SQL = "show tables";
Ivan Dimitrov> if(!$result = mysql_db_query('base',$SQL,$dbh)) exit("OFFF");
Ivan Dimitrov> while($row=mysql_fetch_array($result)){
Ivan Dimitrov> echo $row[0]."<br>";
Ivan Dimitrov> }
?>>
Ivan Dimitrov> EOF
Ivan Dimitrov> se ochakva da mi izkara vsichki tablici v 'base', no mi vrushta:
Ivan Dimitrov> --------------from web----------------------------------------------------
Ivan Dimitrov> Warning: Access denied for user: 'root@localhost' (Using password: NO) in
Ivan Dimitrov> /www/a.php on line 2
Ivan Dimitrov> Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
Ivan Dimitrov> (Using password: NO) in /www/a.php on line 2
Ivan Dimitrov> FUCK
Ivan Dimitrov> --------------stop:)------------------------------------------------------
Ivan Dimitrov> zabelejete che izpisva Using password: NO
Ivan Dimitrov> i tuk idva strannoto, ot mysql.log
Ivan Dimitrov> --------------------------------------------------------------------------
Ivan Dimitrov> 020829 15:04:07 8 Connect Access denied for user: 'root@localhost' (Using password: YES)
Ivan Dimitrov> --------------------------------------------------------------------------
Ivan Dimitrov> i za iznenada na vsichki komandada:
Ivan Dimitrov> mysql -pparola base -h localhost -u root
Ivan Dimitrov> raboti!!!!! sirech, v mysql pravata sa pravelni
Ivan Dimitrov> produljix da si igraq sas skripta kato smenix IP-to i usera, v
Ivan Dimitrov> mysql.log-a produljavashe da mi izpisva root@localhost. nemoga da
Ivan Dimitrov> predpoloja che sa nqkade hardcodenati neshtata zashtoto nesa nikade po
Ivan Dimitrov> konfigite. sushtiq skript raboti na drugi mashini sas sushtata
Ivan Dimitrov> konfiguracia.
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|