Board index » delphi » Connecting to mySQL database using dbExpress - problems :-(

Connecting to mySQL database using dbExpress - problems :-(

Hi,

Help needed.

I am trying to connect to mySQL using dbExpress - TSQLConnection. Have
set the DriverName to LIBMYSQL.DLL (using the DLL from the MySQL/Win
distribution). Tried to connect - no go: "Cannot load LIBMYSQL.DLL".
Tried putting LIBMYSQL.DLL in the current dir, in a path dir,
specifying the exact pathname in the DriverName property - again the
same...

With Interbase it works better, but the condition is for a free SQL
server for at least 20 users, and the free IB is limited to 5... :-(

Any ideas?

Thanks in advance,

Grigor

 

Re:Connecting to mySQL database using dbExpress - problems :-(


Hi,

Quote
g_gatc...@yahoo.com (Grigor Gatchev) wrote in message <news:265626b.0208211208.3f028907@posting.google.com>...
> Hi,

> Help needed.

> I am trying to connect to mySQL using dbExpress - TSQLConnection. Have
> set the DriverName to LIBMYSQL.DLL (using the DLL from the MySQL/Win
> distribution). Tried to connect - no go: "Cannot load LIBMYSQL.DLL".
> Tried putting LIBMYSQL.DLL in the current dir, in a path dir,
> specifying the exact pathname in the DriverName property - again the
> same...

> With Interbase it works better, but the condition is for a free SQL
> server for at least 20 users, and the free IB is limited to 5... :-(

> Any ideas?

I use dbexpress and mySQl too, in the TSQLConnection i have the follwing settings:
DriverName : mySQL
libraryname : dbexpress
vendorlib: LIBMYSQL.dll

HTH

Ralf

- Show quoted text -

Quote

> Thanks in advance,

> Grigor

Re:Connecting to mySQL database using dbExpress - problems :-(


Free IB is just what it says, not limited to 5, but free.  Isn't it?

Andrew

Re:Connecting to mySQL database using dbExpress - problems :-(


Quote
grae...@gruene-software.de (Ralf Graeber) wrote in message <news:abfb98ed.0208220433.4f149e62@posting.google.com>...
> I use dbexpress and mySQl too, in the TSQLConnection i have the follwing settings:
> DriverName : mySQL
> libraryname : dbexpress
> vendorlib: LIBMYSQL.dll

> HTH

> Ralf

It didn't helped, but still thanks.

(Tweeking the things, I achieved another result, too - crashing the
application with no warning. :-) :-(

Re:Connecting to mySQL database using dbExpress - problems :-(


Quote
Andrew Skinner wrote:
> Free IB is just what it says, not limited to 5, but free.  Isn't it?

It is.  But: there will be no further development on the free version
(IB OE = Open Edition).
You may be interested in visiting  www.firebirdsql.com  and
www.ibphoenix.com  to see Firebird.  It is based on the IB/6 source
code, it is Open Source, and it is free.
Support newgroups are mirrored at  news.atkin.com.

Regards,
Aage J.

Re:Connecting to mySQL database using dbExpress - problems :-(


I have the same Grigor problem... unable to load libmysql.dll... :(

ideas?

Fabio

--
Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


Change to use mySQL 3.23.53, you problem will solved.

Originally posted by Grigor Gatchev

Quote
> Hi,

> Help needed.

> I am trying to connect to mySQL using dbExpress - TSQLConnection.
> Have set the
> DriverName to LIBMYSQL.DLL (using the DLL from the MySQL/Win
> distribution). Tried to
> connect - no go: "Cannot load LIBMYSQL.DLL". Tried putting
> LIBMYSQL.DLL in the
> current dir, in a path dir, specifying the exact pathname in the
> DriverName property
> - again the same...

> With Interbase it works better, but the condition is for a free SQL
> server for at
> least 20 users, and the free IB is limited to 5... :-(

> Any ideas?

> Thanks in advance,

Grigor

--
Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


MartinChoi, or Grigor

I've got the same problem, "Cannot load LIBMYSQL.DLL" and I'm using
mySQL 3.23.53 and I'm running the 'mysqld-nt.exe' service/server.

I'm also using same dbExpress - TSQLConnection and I've tried changing
the path and whatnot, but still no luck.

Anyone have step by step process of getting Delphi 6 and mySQL talking
using the dbExpress controls???

Thanks,

Breakerbox

Quote
MartinChoi <mem...@dbforums.com> wrote in message <news:2006822.1036428386@dbforums.com>...
> Change to use mySQL 3.23.53, you problem will solved.

> Originally posted by Grigor Gatchev
> > Hi,

> > Help needed.

> > I am trying to connect to mySQL using dbExpress - TSQLConnection.
> > Have set the
> > DriverName to LIBMYSQL.DLL (using the DLL from the MySQL/Win
> > distribution). Tried to
> > connect - no go: "Cannot load LIBMYSQL.DLL". Tried putting
> > LIBMYSQL.DLL in the
> > current dir, in a path dir, specifying the exact pathname in the
> > DriverName property
> > - again the same...

> > With Interbase it works better, but the condition is for a free SQL
> > server for at
> > least 20 users, and the free IB is limited to 5... :-(

> > Any ideas?

> > Thanks in advance,

> Grigor

Re:Connecting to mySQL database using dbExpress - problems :-(


Try putting LIBMYSQL.DLL on C:\WiNNT\System32 Folder.

-------------------------------------
I've got the same problem, "Cannot load LIBMYSQL.DLL" and I'm using
mySQL 3.23.53 and I'm running the 'mysqld-nt.exe' service/server.

--
Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


Hi Breakerbox,

Delphi 6 have dbexpress driver dbexpmys.dll for support mySQL
3.22.xx only.

If you updated the Delphi 6 patch 2, you will have a new driver
dbexpmysql.dll for support mySQL 3.23.53

If you want to support mySQL 4.0 beta, you can download the new driver
dbexpmy4.dll at the following URL

http://community.borland.com/article/0,1410,28590,00.html

Hope it can help u.

Martin Choi

Originally posted by Breakerbox

Quote
> MartinChoi, or Grigor

> I've got the same problem, "Cannot load LIBMYSQL.DLL" and I'm using
> mySQL 3.23.53 and I'm running the 'mysqld-nt.exe' service/server.

> I'm also using same dbExpress - TSQLConnection and I've tried changing
> the path and whatnot, but still no luck.

> Anyone have step by step process of getting Delphi 6 and mySQL talking
> using the dbExpress controls???

> Thanks,

> Breakerbox

--
Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


MartinChoi,

I've got Delphi 6, patch 2.  I will try this again tonight, and
clarify exactly what version of mySQL I have.  If it still does not
work I will try with mySQL 4.0 Beta and see if that works.

Thanks for the info!!

Breakerbox

Quote
MartinChoi <mem...@dbforums.com> wrote in message <news:2053971.1037416196@dbforums.com>...
> Hi Breakerbox,

> Delphi 6 have dbexpress driver dbexpmys.dll for support mySQL
> 3.22.xx only.

> If you updated the Delphi 6 patch 2, you will have a new driver
> dbexpmysql.dll for support mySQL 3.23.53

> If you want to support mySQL 4.0 beta, you can download the new driver
> dbexpmy4.dll at the following URL

> http://community.borland.com/article/0,1410,28590,00.html

> Hope it can help u.

> Martin Choi

Re:Connecting to mySQL database using dbExpress - problems :-(


Hi, All,

I am using TSQLConnection in delphi 7, I do have the same problem when I
used it with mySQL 4.0.6 gamma version.

I solved it, you may do the same steps as I did.

1. download dbexpmy4.dll first.
2. changed the property of LibraryName from dbexpmysql.dll to
   dbexpmy4.dll.
3. copy libmysql.dll from \mysql\bin to \windows\system32 directory.

then the problem will no longer exist any more.
However, I am new to mysql 4.0.6 gamma, I was prompted to enter username
and password after the problem solved, but I don't know what the exactly
username and password are. Therefore, I have a problem about login.

So, if you kown how to login successfully, please let me know.

Thank you.

Alex Pan

--
Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


Try using:

User: root
and leave password empty!!

Quote
"alexpan2002" <mem...@dbforums.com> wrote in message

news:2316951.1040780376@dbforums.com...
Quote

> Hi, All,

> I am using TSQLConnection in delphi 7, I do have the same problem when I
> used it with mySQL 4.0.6 gamma version.

> I solved it, you may do the same steps as I did.

> 1. download dbexpmy4.dll first.
> 2. changed the property of LibraryName from dbexpmysql.dll to
>    dbexpmy4.dll.
> 3. copy libmysql.dll from \mysql\bin to \windows\system32 directory.

> then the problem will no longer exist any more.
> However, I am new to mysql 4.0.6 gamma, I was prompted to enter username
> and password after the problem solved, but I don't know what the exactly
> username and password are. Therefore, I have a problem about login.

> So, if you kown how to login successfully, please let me know.

> Thank you.

> Alex Pan

> --
> Posted via http://dbforums.com

Re:Connecting to mySQL database using dbExpress - problems :-(


Quote
"AK" <jk> wrote in message <news:3e0c6a78$1_1@news.estpak.ee>...
> Try using:

> User: root
> and leave password empty!!

If that works then try something like these to increase your security:

procedure TformDBConfig.CreateRootPass(Sender: TObject);
begin
  With qConfig do  //qConfiq is a Query - replace yourpassword with
whatever you like
  Try
    Sql.Clear;
    Sql.Add('UPDATE USER SET PASSWORD=''yourpassword'' WHERE
USER=''root''');
    ExecSql;
    transConfig.Commit;
  Except  { If an error occurs, the User Not updated tell me }
    on E: Exception do
    begin
      Showmessage(E.Message);
      MessageDlg('What the ??  An Error.  root password NOT Created.',
        mtError, [mbOK], 0);
    end;
  End;
end;

{I like this one because it's the Interbase default}
procedure TformDBConfig.CreateSysdba(Sender: TObject);
var TheString : String;
begin
  With qConfig do
  Try
    Sql.Clear;
    TheString := 'GRANT ALL PRIVILEGES ON *.* TO sysdba@localhost
IDENTIFIED' +
      'BY ''masterkey'' WITH GRANT OPTION';
    Sql.Add(TheString);
    ExecSql;
    transConfig.Commit;
  Except  { If an error occurs, the User Not Created tell me }
    on E: Exception do
    begin
      Showmessage(E.Message);
      MessageDlg('What the ??  An Error.  sysdba user NOT Created.',
          mtError, [mbOK], 0);
    end;
  End;
end;

HTH,

John

Re:Connecting to mySQL database using dbExpress - problems :-(


Hi Ak,

Thank you very much for your suggestion.
I have tried that user name and the password, but it does not work.
I set root user's password by using mysqladmin program. Unfornately, it
doesn't work, either.

I tested the username and password on a dos box, so I am sure the user
name and password are correct, then I went back to delphi 7 and tried
the same name and password, but... I always got invalid
username/password information.

If you login  successfully, could you tell me the information? Your
mysql version, OS and delphi version information will be helpful to me.

Thank you.

Hi, John Kebert,

Thank you very much for your suggestion, I will use it when I solved
this login problem.

Sincerely,
Alex Pan

--
Posted via http://dbforums.com

Go to page: [1] [2]

Other Threads