Distant Mysql connection on www.free.fr

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
orelien_relou
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 24.10.2006, 22:52

Distant Mysql connection on www.free.fr

Post by orelien_relou »

Hi,

I try to learn how to use the ZeosLib to connect my Delphi 6 application to a Mysql database using easyphp 1.7.

I had no problem to connect me to the local database "localhost or 127.0.0.1" in the "hostname" parameter of the "ZConnection" component.

Then, i tryed to connect it to a distant database hosted at www.free.fr , and it doesn't work at all.

The parameters of my ZConnection :
(mydatabase.free.fr)
Database : mydatabase
Hostname : mydatabase.free.fr
password : xxxx
Port : 80
User : mydatabase
protocol : mysql

When i try to activate the connection, the component give me a error message saying he can't reach this hostname.

Is there anyone who can help me ?

Thank you
Aurélien
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Bonjour Aurélien,

Do you have a firewall installed? (first thing to check when going outside)
Are you sure about the port settings? This is usually the port for a webserver, not a database server. Zeoslib does not connect to a php-script but to the database immediately. I don't know if free.fr allows that. Usually providers only allow access using an interface as easyphp, phpMyAdmin, ....

Maybe you should start testing the server with the mysql console that is in every mysql distribution. Once you're sure that works, zeoslib connection should be a piece of cake.

Au revoir,
Mark
orelien_relou
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 24.10.2006, 22:52

Post by orelien_relou »

Hi,

Thank you for your reply.

As you, how can i test the server with the mysql console ? I didn't find this mysql console.
What do you about this way of doing to connect me to this database on free.fr with this Zeos component ?
You tell me that the "port" parameter shouldn't be correct, is that ? Whta to dyou advise me to do ?

Thank you
Aurélien
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Please read this page on the free.fr site:

http://faq.free.fr/accesgratuit/Adminis ... de_donnees

Pourtant ce paragraphe est interessant :
Notes
Les scripts php ne peuvent utiliser que la base de données mysql fournie par nos soins.
Il est possible de gérer la base de données mysql via sql.free.fr (Gérer les données, faire des imports, exports, etc)
Seuls les scripts php hebergés sur les pages persos ainsi que http://sql.free.fr peuvent permettre de se connecter sur la base de données. Aucune connexion ne peut etre établie depuis l'extérieur sur les bases de données de Free.
Désolé, but ZEOSLIB can't connect to this database server.

Mark
Post Reply