|
|
 | | From: | robert | | Subject: | MySQL + Borland Builder C++ | | Date: | Sun, 16 Jan 2005 16:41:07 +0100 |
|
|
 | Hello!
I'm writing small application under Borland Builder C++ 6.0 which will be connecting with MySQL database. I use dbExpress to connect with a database but I have small problem, because when I'm connecting with database which is on localhost everything is ok but when I want connect wiath a database from other host It doesn't work.
polaczenie->Params->Values["HOSTNAME"] = "turli.ds.pg.gda.pl"; with "localhost" it works polaczenie->Params->Values["DATABASE"] = "turli"; polaczenie->Params->Values["USER_NAME"] = "login"; polaczenie->Params->Values["PASSWORD"] = "pass"; polaczenie->KeepConnection = true; polaczenie->Open();
what should I do?? Thank you for your help
Regards Robert
|
|
 | | From: | Manu Pavy | | Subject: | Re: MySQL + Borland Builder C++ | | Date: | Tue, 18 Jan 2005 08:40:29 +0100 |
|
|
 | robert a fait part de :
> Hello! > > I'm writing small application under Borland Builder C++ 6.0 which will be > connecting with MySQL database. > I use dbExpress to connect with a database but I have small problem, because > when I'm connecting with database which is on localhost everything is ok but > when I want connect wiath a database from other host It doesn't work. > > polaczenie->Params->Values["HOSTNAME"] = "turli.ds.pg.gda.pl"; with > "localhost" it works > polaczenie->Params->Values["DATABASE"] = "turli"; > polaczenie->Params->Values["USER_NAME"] = "login"; > polaczenie->Params->Values["PASSWORD"] = "pass"; > polaczenie->KeepConnection = true; > polaczenie->Open(); > > what should I do?? Thank you for your help
Hi, Are you (or can you tell with) the admin of the database turli.ds.pg.gda.pl ? Because it comes from, perhaps, the configuration. With MySQL, you can tell the server to not be connected from the outdoor (<> localhost) I think you should try with a MySQL client (like MysqlControlCenter from MySQL AB, on their web site)
Hope in helping you,
Manu
|
|
 | | From: | robert | | Subject: | Re: MySQL + Borland Builder C++ | | Date: | Tue, 18 Jan 2005 21:25:20 +0100 |
|
|
 | Hello!
> Hi, > Are you (or can you tell with) the admin of the database > turli.ds.pg.gda.pl ? > Because it comes from, perhaps, the configuration. With MySQL, you can > tell the server to not be connected from the outdoor (<> localhost) > I think you should try with a MySQL client (like MysqlControlCenter from > MySQL AB, on their web site) >
the problem is that this MySQL database is on my computer, when I connecting with a database by "localhost" everything is ok but when I write there my hostname "turli.ds.pg.gda.pl" it doesn't work. I also check other connection with database on other host, (I can connect also with this host from my computer) and it didn't work too:( I don't know what is wrong, I suppose that something with library *.dll or with my Builder. It connects with localhost only, it doesn't want connect "abroad".
Robert
|
|
 | | From: | Manu Pavy | | Subject: | Re: MySQL + Borland Builder C++ | | Date: | Wed, 19 Jan 2005 08:55:18 +0100 |
|
|
 | Ok, it can come from your library. I don't know Borland C++. But, in other case, have you try to ping the 3306 port throught turli.ds.pg.gda.pl (from your computer and abroad) Have you a MySQL error or a borland error ? In the first case, chek this link : http://dev.mysql.com/doc/mysql/en/Access_denied.html
Manu
> the problem is that this MySQL database is on my computer, when I connecting > with a database by "localhost" everything is ok but when I write there my > hostname "turli.ds.pg.gda.pl" it doesn't work. I also check other connection > with database on other host, (I can connect also with this host from my > computer) and it didn't work too:( > I don't know what is wrong, I suppose that something with library *.dll or > with my Builder. It connects with localhost only, it doesn't want connect > "abroad". > > Robert > >
|
|
|