Connection ERROR to database in LAN !!

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ghazaliove
Posts: 5
Joined: Mon 04 Feb 2008 20:32
Location: ALGERIA
Contact:

Connection ERROR to database in LAN !!

Post by ghazaliove » Tue 12 Feb 2008 18:09

Hi all,

In Cybercoffee, i puted a database folder in PC1, and
the application in PC2, i made the IP of the PC1 correctly,
When i trying to connect to database from one PC, i have
this error message.

Image

What's the problem?!!
Thanks
:oops:

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Tue 12 Feb 2008 20:10

Is this problem during run and design time?
Are you able to connect to this IP using the MySQL tools http://dev.mysql.com/downloads/gui-tools/5.0.html

ghazaliove
Posts: 5
Joined: Mon 04 Feb 2008 20:32
Location: ALGERIA
Contact:

Thanks..

Post by ghazaliove » Tue 12 Feb 2008 20:25

This problem occured in RUN mode, i don't have Delphi
installed in Cyber.

Im using last MyDac vcl.
i'm not installing MySql server from MySql.com
because corelab told that no external files required !!

Hop to hear from you!

eduardosic
Posts: 387
Joined: Fri 18 Nov 2005 00:26
Location: Brazil

Re: Thanks..

Post by eduardosic » Tue 12 Feb 2008 22:12

ghazaliove wrote:This problem occured in RUN mode, i don't have Delphi
installed in Cyber.

Im using last MyDac vcl.
i'm not installing MySql server from MySql.com
because corelab told that no external files required !!

Hop to hear from you!
Check if Port 3306 in Server Firewall is opened.

check in the server if the user have privilegies to connect from a remote machine.. Field Host in table mysql.user put % to allow connection for any IP.

Thomas J.
Posts: 95
Joined: Mon 21 Nov 2005 12:16
Location: Germany

Post by Thomas J. » Wed 13 Feb 2008 05:37

What is cybercoffe?

ghazaliove
Posts: 5
Joined: Mon 04 Feb 2008 20:32
Location: ALGERIA
Contact:

Post by ghazaliove » Thu 14 Feb 2008 21:08

Thanks for reply,
i don't understod, can you give me an example with source code?

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Fri 15 Feb 2008 06:57

Hi ghazaliove,

If you want your software working over the LAN , you must install an SQL server. Given your example, install the MySQL server on the 192.168.0.2 workstation / server.

Be sure that the MySQL server is running on the workstation (look at the service manager and check that MySQL is running).
By default, MySQL is listening on the 3306 Port.
Check if Port 3306 in Server Firewall is opened.
You should also configure the MySQL.user table to add new users and allows them to connect on the server.

To configure your MySQL users use either the Corelab MyDac MySQL Tool manager or MySQL GUI Tools.

Bonne chance

Post Reply