www.ProFTPD.de
13. März 2007, 22:01:20 *
Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge
News: SMF - Neu installiert!
 
   Übersicht   Hilfe Suche Login Registrieren  
Seiten: [1]   Nach unten
  Drucken  
Autor Thema: Keine Verbindung, MySql extern  (Gelesen 129 mal)
0 Mitglieder und 1 Gast betrachten dieses Thema.
Tuempel
ProFTPD
*
Offline Offline

Beiträge: 2


Profil anzeigen
« am: 14. Februar 2006, 22:42:19 »

Hallo,

leider komme ich echt nicht weiter, ich habe hier auch schon gesucht und selbst mit den Tipps keinen Erfolg.
Folgendes: Proftpd läuft auf Server1, MySql auf Server2

Meine Config (aus nem Buch so übernommen):
Code:

ServerName                      "FTP1"
ServerType                      standalone
DefaultServer                   on
Port                            21
MaxInstances                    20
TimeoutLogin                    30
User                            root
Group                           root
DefaultRoot                     ~
Umask                           026 027
AllowOverwrite                  on
RequireValidShell               off
SQLConnectInfo web2p5@<IP>:3306 proftpd "*****"
SQLAuthTypes Plaintext
SQLAuthenticate users*
SQLUserInfo users username password uid NULL homedir NULL
SQLUserWhereClause "count='0'"
SQLLog PASS counter
SQLNamedQuery counter UPDATE "count=1 WHERE username='%u'" users
SQLLog RETR,STOR instertfileinfo
SQLNamedQuery insertfileinfo UPDATE "size=size+'%b' WHERE username='%u'" users
SQLMinUserUID 500
SQLDefaultGID 65534


Das Logfile SQL.Log meldet folgendes:
Code:

Feb 14 23:57:10 mod_sql/4.2.1[1685]: defaulting to 'mysql' backend
Feb 14 23:57:10 mod_sql/4.2.1[1685]: backend module 'mod_sql_mysql/4.05'
Feb 14 23:57:10 mod_sql/4.2.1[1685]: backend api    'mod_sql_api_v2'
Feb 14 23:57:10 mod_sql/4.2.1[1685]: >>> sql_sess_init
Feb 14 23:57:10 mod_sql/4.2.1[1685]: entering   mysql cmd_defineconnection
Feb 14 23:57:10 mod_sql/4.2.1[1685]:  name: 'default'
Feb 14 23:57:10 mod_sql/4.2.1[1685]:  user: 'proftpd'
Feb 14 23:57:10 mod_sql/4.2.1[1685]:  host: '<IP>'
Feb 14 23:57:10 mod_sql/4.2.1[1685]:    db: 'web2p5'
Feb 14 23:57:10 mod_sql/4.2.1[1685]:  port: '3306'
Feb 14 23:57:10 mod_sql/4.2.1[1685]:   ttl: '0'
Feb 14 23:57:10 mod_sql/4.2.1[1685]: exiting    mysql cmd_defineconnection
Feb 14 23:57:10 mod_sql/4.2.1[1685]: entering   mysql cmd_open
Feb 14 23:57:11 mod_sql/4.2.1[1685]: exiting    mysql cmd_open
Feb 14 23:57:11 mod_sql/4.2.1[1685]: unrecoverable backend error
Feb 14 23:57:11 mod_sql/4.2.1[1685]: error: '1044'
Feb 14 23:57:11 mod_sql/4.2.1[1685]: message: 'Access denied for user: 'proftpd@' to database 'web2p5''


<IP> und Passwort habe ich nur hier so eingefügt Zwinkernd
Was mich wundert ist:
'Access denied for user: 'proftpd@' to database 'web2p5''

hinter dem @ kommt nix, egal ob host oder ip eintrage, oben bei:
host: '<IP>'
scheint er es aber zu "fressen".

Ok, gecheckt habe ich: externen zugriff auf die Datenbank, ist ok.
habe ein php file erstellt:
Code:

<?php
$verbindung 
= @mysql_connect&#40;"<IP>","proftpd","****"&#41;;


        
if &#40;!$verbindung&#41; &#123;
                
echo "Keine Verbindung möch!\n";

        &
#125;else&#123;

                
echo "Verbindung ok";
        &
#125;
?>



Das meldet Verbindung OK, also Zugriff von außen scheint zu funktionieren.

Woran könnte es noch liegen ? Wäre echt über jede Hilfe dankbar !
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #1 am: 15. Februar 2006, 06:57:16 »

debian ?
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Tuempel
ProFTPD
*
Offline Offline

Beiträge: 2


Profil anzeigen
« Antwort #2 am: 15. Februar 2006, 07:03:01 »

hi,

sorry ganz vergessen zu schreiben, Suse 9.3
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #3 am: 15. Februar 2006, 07:17:40 »

ah, ich bin so blöd...

1) füge SqlLogFile /var/log/proftpd.sql.log in Deine config ein
2) Restarte ProFTPD
3) versuch Dich einzuloggen und schau Dir das log an
4) poste das ggf. hier
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Anonymous
Gast
« Antwort #4 am: 15. Februar 2006, 07:28:39 »

ähm das hab ich da oben mit gepostet ^^

"Das Logfile SQL.Log meldet folgendes: "

damit meinte ich dieses proftpd.sql.log
Gespeichert
stonki
Administrator
ProFTPD
*****
Offline Offline

Beiträge: 1853


15318939
Profil anzeigen WWW E-Mail
« Antwort #5 am: 15. Februar 2006, 09:09:33 »

sorry.. Und von dem Rechner wo ProFTPD läuft.. kannst Du da:

mysql -u web2p5 -h IP> -p 'password'
use proftpd

machen ?

cu
stonki
Gespeichert

www.stonki.de:    the more I see, the more I know.......
www.proftpd.de:   Deutsche ProFTPD Dokumentation
www.krename.net:  Der Batch Renamer für KDE
www.kbarcode.net: Die Barcode Solution für KDE
Seiten: [1]   Nach oben
  Drucken  
 
Gehe zu:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS
Seite erstellt in 0.058 Sekunden mit 19 Zugriffen.