Board index » delphi » dbExpress WILL NOT connect to a remote mysql (linux) server

dbExpress WILL NOT connect to a remote mysql (linux) server

Using D6.01.
Works with local mysql 3.23.43.
Does NOT work with remote linux 3.23.41 or 3.23.32.

No matter what I try, I cannot get connected to a remote mysql server.
I always get the "dbx error: invalid username/password" error dialog.

I finally broke down and installed the win32 version on my pc and I
can connect to it as expected.

If I leave the mysqld service running and change the hostname to a
remote server and set active := false then true, it (looks like it)
connects. BUT, it's connecting to the local server NOT the remote
server. I can tell because if I stop the service I get an error dialog
telling me the server has gone away.

Also, If I stop the service, change the hostname to a remote server
and try to reconnect, I get the invalid username/password dbx error.

I certainly hope dbexpress was not designed to only access local win32
mysql servers.

What in the world is going on here?  Suggestions, tips, solutions will
be appreciated.

Mike

 

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


I have a similar problem I can connect to my win32 server but not my linux
server, however I can connect to my uni's server running on solaris.
Something strange is wrong with my linux mysql install.  Any ideas what?

Quote
<Mike Leonard> wrote in message

news:37k3utosf36ga9gvo6ifm7a9m8sqvjkosl@4ax.com...
Quote
> Using D6.01.
> Works with local mysql 3.23.43.
> Does NOT work with remote linux 3.23.41 or 3.23.32.

> No matter what I try, I cannot get connected to a remote mysql server.
> I always get the "dbx error: invalid username/password" error dialog.

> I finally broke down and installed the win32 version on my pc and I
> can connect to it as expected.

> If I leave the mysqld service running and change the hostname to a
> remote server and set active := false then true, it (looks like it)
> connects. BUT, it's connecting to the local server NOT the remote
> server. I can tell because if I stop the service I get an error dialog
> telling me the server has gone away.

> Also, If I stop the service, change the hostname to a remote server
> and try to reconnect, I get the invalid username/password dbx error.

> I certainly hope dbexpress was not designed to only access local win32
> mysql servers.

> What in the world is going on here?  Suggestions, tips, solutions will
> be appreciated.

> Mike

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Hello!

Are you sure that your Linux MySQL is set up with correct user name and
password from the correct host. In MySQL you will have to define from which
host(s) you are able to connect from with a username and password.

Reading http://www.mysql.com/doc/A/d/Adding_users.html would make a good
starting point.

Hope this helps,
Anders

Quote
<Mike Leonard> wrote in message

news:37k3utosf36ga9gvo6ifm7a9m8sqvjkosl@4ax.com...
Quote
> Using D6.01.
> Works with local mysql 3.23.43.
> Does NOT work with remote linux 3.23.41 or 3.23.32.

> No matter what I try, I cannot get connected to a remote mysql server.
> I always get the "dbx error: invalid username/password" error dialog.

> I finally broke down and installed the win32 version on my pc and I
> can connect to it as expected.

> If I leave the mysqld service running and change the hostname to a
> remote server and set active := false then true, it (looks like it)
> connects. BUT, it's connecting to the local server NOT the remote
> server. I can tell because if I stop the service I get an error dialog
> telling me the server has gone away.

> Also, If I stop the service, change the hostname to a remote server
> and try to reconnect, I get the invalid username/password dbx error.

> I certainly hope dbexpress was not designed to only access local win32
> mysql servers.

> What in the world is going on here?  Suggestions, tips, solutions will
> be appreciated.

> Mike

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


I also cannot connect to remote mysql server :(
invalid username/password
Username and password and hostname is valid and access to mysql is allowed -
i've tried to connect from JDBC driver from same pc - it worked. Someone
please help up!
Delphi Trial  6.0 (6.167) Update Pack 1.
It seems it is not sending  remote host params to libmysql.dll
May be we should try ealier version of libmysql?

Quote
<Mike Leonard> wrote in message

news:37k3utosf36ga9gvo6ifm7a9m8sqvjkosl@4ax.com...
Quote
> Using D6.01.
> Works with local mysql 3.23.43.
> Does NOT work with remote linux 3.23.41 or 3.23.32.

> No matter what I try, I cannot get connected to a remote mysql server.
> I always get the "dbx error: invalid username/password" error dialog.

> I finally broke down and installed the win32 version on my pc and I
> can connect to it as expected.

> If I leave the mysqld service running and change the hostname to a
> remote server and set active := false then true, it (looks like it)
> connects. BUT, it's connecting to the local server NOT the remote
> server. I can tell because if I stop the service I get an error dialog
> telling me the server has gone away.

> Also, If I stop the service, change the hostname to a remote server
> and try to reconnect, I get the invalid username/password dbx error.

> I certainly hope dbexpress was not designed to only access local win32
> mysql servers.

> What in the world is going on here?  Suggestions, tips, solutions will
> be appreciated.

> Mike

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Yes, I'm sure.

I know it's set up correctly because both MySQLDAC and ZEOS work.

The sqlconnection is not even getting off of my PC. ZoneAlarm pops up
and requests access, but tcpdump on the db server is not seeing any
"hits" from my pc.

If I do the same thing with either off the others, I instantaneously
see "hits" in tcpdump.

For example, this is what I see using MySQLDAC.  

[root@uswisuxdb7 /]# tcpdump -n -s 100 src 10.172.17.47 and not port
22
Kernel filter, protocol ALL, datagram packet socket
tcpdump: listening on all devices
11:18:58.603306 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: S
2430237344:2430237344(0) win 64240 <mss 1460,nop,nop,sackOK> (DF)
11:18:58.603593 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
2430237345:2430237345(0) ack 1666135941 win 64240 (DF)
11:18:58.604728 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: P
0:36(36) ack 49 win 64192 (DF)
11:18:58.605453 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: P
36:55(19) ack 58 win 64183 (DF)
11:18:58.741361 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
55:55(0) ack 1518 win 64240 (DF)
11:18:58.952383 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
55:55(0) ack 2125 win 63633 (DF)

6 packets received by filter
[root@uswisuxdb7 /]#

With dbexpress I get nothing.

Something is definitely broken and I'm thinking it's not my PC or my
mysql servers..

P.S. Anders, sorry for the email. I clicked the wrong button.

On Fri, 2 Nov 2001 15:08:06 +0100, in

Quote
borland.public.delphi.database.dbexpress you wrote:
>Hello!

>Are you sure that your Linux MySQL is set up with correct user name and
>password from the correct host. In MySQL you will have to define from which
>host(s) you are able to connect from with a username and password.

>Reading http://www.mysql.com/doc/A/d/Adding_users.html would make a good
>starting point.

>Hope this helps,
>Anders

><Mike Leonard> wrote in message
>news:37k3utosf36ga9gvo6ifm7a9m8sqvjkosl@4ax.com...
>> Using D6.01.
>> Works with local mysql 3.23.43.
>> Does NOT work with remote linux 3.23.41 or 3.23.32.

>> No matter what I try, I cannot get connected to a remote mysql server.
>> I always get the "dbx error: invalid username/password" error dialog.

>> I finally broke down and installed the win32 version on my pc and I
>> can connect to it as expected.

>> If I leave the mysqld service running and change the hostname to a
>> remote server and set active := false then true, it (looks like it)
>> connects. BUT, it's connecting to the local server NOT the remote
>> server. I can tell because if I stop the service I get an error dialog
>> telling me the server has gone away.

>> Also, If I stop the service, change the hostname to a remote server
>> and try to reconnect, I get the invalid username/password dbx error.

>> I certainly hope dbexpress was not designed to only access local win32
>> mysql servers.

>> What in the world is going on here?  Suggestions, tips, solutions will
>> be appreciated.

>> Mike

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Hello Mike!

Quote
> Using D6.01.
> Works with local mysql 3.23.43.
> Does NOT work with remote linux 3.23.41 or 3.23.32.

I have the same troubles with the remote linux MySQL version 3.23 but
now I use the libmySQL.dll 3.22 and it works fine :-)

I think Borland have use the old MySQl version 3.22 at design the MySQL
driver....

Regards
Reinhard

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Quote
> I certainly hope dbexpress was not designed to only access local
> win32 mysql servers.

Certainly not. I have no problems connecting 6.01 to a remote MySQL 3.23.x
server running on a Linux box.

You have changed the LibraryName to dbexpmysql.dll as it says in the readme,
right? I also suppose you have a pretty recent libmysql.dll.

What are the hosts permissions for the MySQL user? You say the connection
doesn't reach the remote computer, how have you specified the remote host?
Have you tested your connection using the test button?

Regards,
Mattias

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


I have been getting the same error message as you when I have use
incompatible dbxpress driver and mysql client library. If you have applied
Update Pack 1, then you can use 3.32 client lib (libmysql.dll) if not you
will have to use 3.22 client lib. I use both (new and old projects).
Therefore I have to files in my winnt\system32 dir. libmysql_22.dll and
libmysql_23.dll. To use the appropriate dbxpress driver and mysql client lib
use one of the following setups:

Setup 1 (Delphi 6 or Delphi 6 with Update Pack 1):
TSqlConnection LibraryName is set to dbexpmys.dll
TSqlConnection VendorLib is set to a libmysql.dll of 3.22.x version of mysql
client lib

Setup 2 (Only Delphi 6 with Update Pack 1):
TSqlConnection LibraryName is set to dbexpmysql.dll
TSqlConnection VendorLib is set to a libmysql.dll of 3.23.x version of mysql
client lib.

Both setup should connect to both 3.22.x servers and 3.23.x servers. It is
the client version that is important. It works for me anyway.

Hope this helps!

Regards,
Anders

Quote
<Mike Leonard> wrote in message

news:64p5utguqop3al2drl5lsvf9s88gtk314u@4ax.com...
Quote
> Yes, I'm sure.

> I know it's set up correctly because both MySQLDAC and ZEOS work.

> The sqlconnection is not even getting off of my PC. ZoneAlarm pops up
> and requests access, but tcpdump on the db server is not seeing any
> "hits" from my pc.

> If I do the same thing with either off the others, I instantaneously
> see "hits" in tcpdump.

> For example, this is what I see using MySQLDAC.

> [root@uswisuxdb7 /]# tcpdump -n -s 100 src 10.172.17.47 and not port
> 22
> Kernel filter, protocol ALL, datagram packet socket
> tcpdump: listening on all devices
> 11:18:58.603306 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: S
> 2430237344:2430237344(0) win 64240 <mss 1460,nop,nop,sackOK> (DF)
> 11:18:58.603593 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
> 2430237345:2430237345(0) ack 1666135941 win 64240 (DF)
> 11:18:58.604728 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: P
> 0:36(36) ack 49 win 64192 (DF)
> 11:18:58.605453 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: P
> 36:55(19) ack 58 win 64183 (DF)
> 11:18:58.741361 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
> 55:55(0) ack 1518 win 64240 (DF)
> 11:18:58.952383 eth0 < 10.172.17.47.1266 > 10.172.16.38.mysql: .
> 55:55(0) ack 2125 win 63633 (DF)

> 6 packets received by filter
> [root@uswisuxdb7 /]#

> With dbexpress I get nothing.

> Something is definitely broken and I'm thinking it's not my PC or my
> mysql servers..

> P.S. Anders, sorry for the email. I clicked the wrong button.

> On Fri, 2 Nov 2001 15:08:06 +0100, in
> borland.public.delphi.database.dbexpress you wrote:

> >Hello!

> >Are you sure that your Linux MySQL is set up with correct user name and
> >password from the correct host. In MySQL you will have to define from
which
> >host(s) you are able to connect from with a username and password.

> >Reading http://www.mysql.com/doc/A/d/Adding_users.html would make a good
> >starting point.

> >Hope this helps,
> >Anders

> ><Mike Leonard> wrote in message
> >news:37k3utosf36ga9gvo6ifm7a9m8sqvjkosl@4ax.com...
> >> Using D6.01.
> >> Works with local mysql 3.23.43.
> >> Does NOT work with remote linux 3.23.41 or 3.23.32.

> >> No matter what I try, I cannot get connected to a remote mysql server.
> >> I always get the "dbx error: invalid username/password" error dialog.

> >> I finally broke down and installed the win32 version on my pc and I
> >> can connect to it as expected.

> >> If I leave the mysqld service running and change the hostname to a
> >> remote server and set active := false then true, it (looks like it)
> >> connects. BUT, it's connecting to the local server NOT the remote
> >> server. I can tell because if I stop the service I get an error dialog
> >> telling me the server has gone away.

> >> Also, If I stop the service, change the hostname to a remote server
> >> and try to reconnect, I get the invalid username/password dbx error.

> >> I certainly hope dbexpress was not designed to only access local win32
> >> mysql servers.

> >> What in the world is going on here?  Suggestions, tips, solutions will
> >> be appreciated.

> >> Mike

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Hello Anders,

I use Delphi 6 with Update Pack 1 and MySQL v3.23 on my remote database
server under FreeBSD but only the libmysql.dll v3.22 will work. With
the right version 3.23 I get the DBXError 'Invalid Username/Password'
:-((

It seems for me there is something a little bit buggy....

Regards
Reinhard

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Quote
>You have changed the LibraryName to dbexpmysql.dll as it says in the readme,
>right? I also suppose you have a pretty recent libmysql.dll.

UGH!! I feel like a complete dope.  I was using the default library
name thinking that the .01 patch would default to using the latest
version...wrong.  I was missing the "ql" from the end of the library
name.

Thanks to all who gave suggestions.

Re:dbExpress WILL NOT connect to a remote mysql (linux) server


Hello Reinhard,

Are you sure that you have set LibraryName to dbexpmysql.dll and NOT
dbexpmys.dll in TSQLConnection. You will have to do that to get 3.23 to work
(3.22 won't work anymore).

There is a difference!

Regards,
Anders

Quote
"R. Montag" <RMon...@helloworld.net> wrote in message

news:VA.00000002.0146e17f@helloworld.net...
Quote
> Hello Anders,

> I use Delphi 6 with Update Pack 1 and MySQL v3.23 on my remote database
> server under FreeBSD but only the libmysql.dll v3.22 will work. With
> the right version 3.23 I get the DBXError 'Invalid Username/Password'
> :-((

> It seems for me there is something a little bit buggy....

> Regards
> Reinhard

Other Threads