Autor Beitrag
lblbw
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Di 03.06.08 19:35 
Hallo,

ich versuche gerade von mein Programm, auf eine Datenbank zuzugreifen, die auf meinen Server liegt. Leider unterbricht er die Verbindung mit der Fehlermeldung, das ein Password für diesen Benutzer benötigt wird. Das Passwort habe ich aber eingegeben.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TForm1.Button1Click(Sender: TObject);
begin
  // Eigenschaften setzen
  FMysql.Host := '78.46.36.7';
  FMysql.port := 3306;
  FMysql.user :='xxx';
  FMysql.password:='xxx';
  FMysql.UnixSocket := '';
  FMysql.Db := 'Interpreten'; // Datenbank auf dem Server
  FMysql.UseNamedPipe := false;
  FMysql.UseSSL := false;
  FMysql.Compress := true;
  FMysql.TrySockets := false;
  if FMysql.Connect then
    ShowMessage('Verbindung aufgebaut')
  else
    ShowMessage('Fehler beim Verbinden: '+FMysql.LastError);
end;
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 03.06.08 19:48 
Welche DB-Komponenten für den Zugang zu MySQL (das lese ich jedenfalls aus dem Variablennamen raus)?
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Di 03.06.08 19:55 
Hallo,

ich verwende:
ausblenden Delphi-Quelltext
1:
uses umysqlvio, uMysqlCT, uMysqlClient, uMysqlHelpers					


da ich keine Komponenten verwende.
lblbw Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Fr 06.06.08 15:05 
Keiner ne Lösung?