Hallo! Ich habe ein "kleines" Problem mit PHP auf meiner Kiste. Und zwar weigert sich das Ding permanent, eine Verbindung mit der Datenbank aufzubauen. Ich bekomme permanent "MySQL Connection Failed: Access denied for user: 'legend@localhost' (Using password: YES)" dabei habe ich auf der Datenbank den Befehl "grant all privileges on datenbank.* to legend@localhost identified by PASSWORT with grant option" ausgeführt. Ich kann mich auch problemlos über die Shell in die Datenbank mit diesen Daten einloggen. Dieselben Daten habe ich auch in PHPskript drin, doch trotzdem wird keine Verbindung aufgebaut. Woran kann es liegen? Danke! G. Daniel -- The most beautiful thing we can experience is the mysterious, It is the source of all true art and science. A. Einstein, What I Believe http://www.animegallery.de
Hi Daniel On Sun, Sep 09, 2001 at 12:56:54PM +0200, Daniel Ludwig wrote:
Ich habe ein "kleines" Problem mit PHP auf meiner Kiste. Und zwar weigert sich das Ding permanent, eine Verbindung mit der Datenbank aufzubauen. Ich bekomme permanent
"MySQL Connection Failed: Access denied for user: 'legend@localhost' (Using password: YES)"
dabei habe ich auf der Datenbank den Befehl "grant all privileges on datenbank.* to legend@localhost identified by PASSWORT with grant option" ausgeführt. Ich kann mich auch problemlos über die Shell in die Datenbank mit diesen Daten einloggen. Dieselben Daten habe ich auch in PHPskript drin, doch trotzdem wird keine Verbindung aufgebaut. Woran kann es liegen?
das leidige MYSQL Auth problem, schau dir doch einfach mal an was in den tabellen mysql.db, mysql.user und mysql.hosts drin steht. möglicherweise hat er beim grant statt localhost den fqdn deiner kiste eingetragen ... ansonsten empfehle ich immer wieder gern ISBN 3-89721-163-7, Oreilly, MySQL & mSQL man braucht es nicht wirklich oft aber immer wieder und dann spart es Stunden. -- MfG. Falk
Hallo Daniel, führe mal folgende Kommandos aus: - mysqladmin mit dem command 'reload' - mysqladmin mit dem command 'refresh'. Danach sollte alles funktionieren, wenn Du wirklich alle Rechte richtig gesetzt hast. Gruss Boris Daniel Ludwig wrote:
Hallo!
Ich habe ein "kleines" Problem mit PHP auf meiner Kiste. Und zwar weigert sich das Ding permanent, eine Verbindung mit der Datenbank aufzubauen. Ich bekomme permanent
"MySQL Connection Failed: Access denied for user: 'legend@localhost' (Using password: YES)"
dabei habe ich auf der Datenbank den Befehl "grant all privileges on datenbank.* to legend@localhost identified by PASSWORT with grant option" ausgeführt. Ich kann mich auch problemlos über die Shell in die Datenbank mit diesen Daten einloggen. Dieselben Daten habe ich auch in PHPskript drin, doch trotzdem wird keine Verbindung aufgebaut. Woran kann es liegen?
Danke!
G.
Daniel
participants (3)
-
B. Höffgen
-
Daniel Ludwig
-
Falk Sauer