Page 1 of 1
Connect to MySQL on WWW
Posted: Tue 04 Nov 2008 09:02
by monday
Hello all
I am am trying to write a delphi program which allows users to connect to their MySQL database which is located on my wwww host.
How can I do that? .....Tutorial is appreciated, The demo is to confusing and putts everything in one program ... IT IS A BIG MESS .... needs to be done all over again and in steps to help beginners like me.
Thank you
Re: Connect to MySQL on WWW
Posted: Tue 04 Nov 2008 11:40
by eduardosic
monday wrote:Hello all
I am am trying to write a delphi program which allows users to connect to their MySQL database which is located on my wwww host.
How can I do that? .....Tutorial is appreciated, The demo is to confusing and putts everything in one program ... IT IS A BIG MESS .... needs to be done all over again and in steps to help beginners like me.
Thank you
is easy... put a TMyConnection, set the property Server =
www.thesite.com
or the ip of site. set the properties Database, user and Password.
please, check if the www host allow external connections.
Posted: Tue 04 Nov 2008 13:40
by Dimon
To connect to MySQL server you should use the TMyConnection component and set the following properties:
Server, Port, Database, Username, Password.
The MyDAC demo projects consist of one large project, but working with every components is included in separate directory and unit. You can click on the "Demo source" button in the MyDacDemo toolbar to find out how the demo you have selected was implemented.
You can find more detailed information about it in the "Getting Started" topic of MyDAC Help.
Posted: Tue 04 Nov 2008 16:18
by monday
I did but it doesn't work...
This what I did
on the new form I put a
* MyConnection1 & MyConnectiondialog1 & Button
*in the properity of MyConnection1 I set the following
ConnectDialog = MyConnectiondialog1
protocol = mpTCP
server =
www.mysite.com
database = MyDB
user = userDB
pass= passDB
* in the click event of the button
MyConnection1.connect;
Note:: I created a database on my site named MyDB
I add a user to MyDB named userDB ,, the password for the user is passDB
ALL OF THIS AND IT DOESNT CONNCECT I GET AN ERRR ...
HELP PLEASE
Posted: Tue 04 Nov 2008 17:49
by eduardosic
monday wrote:I did but it doesn't work...
This what I did
on the new form I put a
* MyConnection1 & MyConnectiondialog1 & Button
*in the properity of MyConnection1 I set the following
ConnectDialog = MyConnectiondialog1
protocol = mpTCP
server =
www.mysite.com
database = MyDB
user = userDB
pass= passDB
* in the click event of the button
MyConnection1.connect;
Note:: I created a database on my site named MyDB
I add a user to MyDB named userDB ,, the password for the user is passDB
ALL OF THIS AND IT DOESNT CONNCECT I GET AN ERRR ...
HELP PLEASE
Please,
1 - check if the host "www" allows external connections and if uses the port 3306. you can obtain this information with you host administrator
2 - check if the user "userDB" can connect to a external network..
field Host in User Manger, set to % to allow external connection
Posted: Wed 05 Nov 2008 10:49
by Dimon
monday wrote:I did but it doesn't work...
This what I did
on the new form I put a
* MyConnection1 & MyConnectiondialog1 & Button
*in the properity of MyConnection1 I set the following
ConnectDialog = MyConnectiondialog1
protocol = mpTCP
server =
www.mysite.com
database = MyDB
user = userDB
pass= passDB
* in the click event of the button
MyConnection1.connect;
Note:: I created a database on my site named MyDB
I add a user to MyDB named userDB ,, the password for the user is passDB
ALL OF THIS AND IT DOESNT CONNCECT I GET AN ERRR ...
HELP PLEASE
Please, give a detail description what error does arise?