Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: problem: php/apache/mysql


  • Subject: lug-bg: problem: php/apache/mysql
  • From: dobber@xxxxxxxxxx (Ivan Dimitrov)
  • Date: Thu, 29 Aug 2002 18:15:27 +0300 (EEST)



imam edin mnogo interesen sluchai, i zapochvam da se sduxvam che ne moga
da izmislq zashto se poluchava taka:

apache 1.3.26
php 4.2.2
mysql 3.23.51

pri izpulnenie na tozi php skript

cat >> a.php < EOF
<?
$dbh = mysql_connect('localhost','root','parola') or die("FUCK");
$SQL = "show tables";
if(!$result = mysql_db_query('base',$SQL,$dbh)) exit("OFFF");
while($row=mysql_fetch_array($result)){
   echo $row[0]."<br>";
}
?>
EOF

e ochakva da mi izkara vsichki tablici v 'base', no mi vrushta:

--------------from web----------------------------------------------------
Warning: Access denied for user: 'root@localhost' (Using password: NO) in
/www/a.php on line 2

Warning: MySQL Connection Failed: Access denied for user: 'root@localhost'
(Using password: NO) in /www/a.php on line 2
FUCK
--------------stop:)------------------------------------------------------
zabelejete che izpisva Using password: NO
i tuk idva strannoto, ot mysql.log
--------------------------------------------------------------------------
020829 15:04:07       8 Connect     Access denied for user:  'root@localhost' (Using password: YES)
--------------------------------------------------------------------------

i za iznenada na vsichki komandada:
mysql -pparola base -h localhost -u root
raboti!!!!! sirech, v mysql pravata sa pravelni
produljix da si igraq sas skripta kato smenix IP-to i usera, v
mysql.log-a produljavashe da mi izpisva root@localhost. nemoga da
predpoloja che sa nqkade hardcodenati neshtata zashtoto nesa nikade po
konfigite. sushtiq skript raboti na drugi mashini sas sushtata
konfiguracia.

nadqvam se da ne vi oburkal s tezi obqsneniq...
predlojeniq?
blagodarq predvaritelno

============================================================================
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
============================================================================



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.