Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Help With Multi Tier Mysql Application Over Net, receiving data connection from client
oncombeureum
post May 21 2005, 08:09 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 28
Joined: 17-April 05
Member No.: 4,081



hi..

i want to make a connection from my desktop client into mysql database at web server.

currently i think it can be provided by PHP.

1. i'm thinking like this:

CLIENT -> PHP + MYSQL

CLIENT {sent file} -> PHP {receive file, open connection to MYSQL, insert data from file}

how it will be done ???

2. the security
do you know how to secure it ?

thanks..

This post has been edited by microscopic^earthling: Jun 29 2005, 05:23 AM
Go to the top of the page
 
+Quote Post
Alpha six
post May 24 2005, 07:58 PM
Post #2


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 5
Joined: 23-May 05
From: Germany, Mannheim
Member No.: 5,356



what for a file do you want to insert?
I myself have installed "phpmyadmin" on my pc and use it to edit my sql database for testings. you only have to download it from www.phpmyadmin.net and then you have to configurate it by editing the "config.default". Least you only have to upload all files on a php supporting webspace. Open it and have fun with a very good database tool!
Go to the top of the page
 
+Quote Post
oncombeureum
post May 27 2005, 02:18 PM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 28
Joined: 17-April 05
Member No.: 4,081



thanks Alpha.

but
forgot to mention...
that

{*** no user intervention on what so ever ***}

just UPLOAD button...
on the desktop client program (currently it's built using Delphi)

so the protokol to use (i'm thinking of) HTTP.

or perhaps FTP (but this require username/password)

thanks
Go to the top of the page
 
+Quote Post
mobious
post May 30 2005, 05:00 AM
Post #4


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 3
Joined: 30-May 05
Member No.: 5,594



why not just a mysql lib and connect to the server directly? it would be much faster and efficient.
Go to the top of the page
 
+Quote Post
oncombeureum
post Jun 3 2005, 11:43 PM
Post #5


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 28
Joined: 17-April 05
Member No.: 4,081



can't do that...

as the database server protect the connection available only from inside connection only..
sad.gif

Go to the top of the page
 
+Quote Post
manymanymuch
post Jun 29 2005, 04:53 AM
Post #6


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 13
Joined: 29-June 05
Member No.: 6,692



Sounds like a job that can use web services namely SOAP protocol to accomplish. It's possible to call objects on the server. I'm not familiar with multi-platform connectivity though.

Look at these few sites:

http://phpsoaptoolkit.sourceforge.net/
http://www.devarticles.com/c/a/PHP/Buildin...h-PHP-NuSOAP/1/
http://www.aspfree.com/c/a/.NET/NET-Remoting-and-Delphi

Although, they look kind of complicated and new. Maybe you only want something simpler. Anyway, hope this helps.
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Jun 29 2005, 05:21 AM
Post #7


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



QUOTE(oncombeureum @ Jun 4 2005, 06:43 AM)
can't do that...

as the database server protect the connection available only from inside connection only..
sad.gif
*




Nope - is IS possible for your Desktop client to communicate with your database at astahost.

Here's how:
=========
1. Lets take an example database "abcd" - when you create a database/user on astahost, it's prefixed with your cPanel username, right ?

So supposing your cPanel username is "myself", your database name will be: myself_abcd

2. Now you need to create an user and grant him with all permissions to the database. Lets create an user called "admin". Even this will be prefixed with your cPanel username..
So your actual db access username will be: myself_admin

3. Grant this user with ALL permissions to that database

4. Now comes the critical part - specifying the ACCESS MASK to this database. Normally it always defaults to localhost. Under this circumstance, you can ONLY access this db using a script/client on your astahost account. You need to add a separate mask that will allow you to access the database from your own IP.
First, find out your own IP. If it is Static, nothing like it. But even if its Dynamic, no problem... Usually for dynamic IPs only the last two octets change everytime you log in... i.e.:

Say, your IP is: 100.200.300.400 - only the 300.400 keeps changing every time you login.. So we're going to replace this with the MySQL version of WildCard - % symbol

In the last option of cPanel MySQL Databases, you'll find a section named Access Hosts - here you've to enter the string,
100.200.%.% and click Add.

We're DONE smile.gif

Now you can directly connect to this database straight from your desktop using your client... Supposing you're going to distribute this client to a lot of users who will upload data into your mysql db - make sure, instead of granting ALL permission, you set the permission to ONLY INSERT & SELECT - that will enable them to add new data and view old data - but not mess around with already added data.

For manipulating your database, adding/deleting/tables.. setting permissions etc.. general database administration job - I'd highly recommend this freeware tool named SQLYog which is freely downloadable at: http://www.webyog.com

Other than that you can also use MySQL's own Administrator and Query Browser.. all of them work just fine smile.gif

Hope this helps - any more help with distributed apps and networked db's let me know..

Regards,
m^e
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Best FTP Client(169)
  2. Convert Fat32 To Ntfs Without Data Loss (dos-mode)(8)
  3. Rakion Problems.(2)
  4. MS Excel -- Automatic Update Of Data(3)
  5. MySQL For EasyPHP Users(5)
  6. Lesson #1 - Introduction To C#(1)
  7. Using Same Serial # On Multiple Copies Of Windows(18)
  8. Important: Basics Of Using PHP And MySQL(10)
  9. CuteNews: PHP-based Blog System - No MySQL(11)
  10. Best Email Client For Gmail(10)
  11. Age Of Empires II (Multi-player Over LAN)(10)
  12. Navcat For MySQL(9)
  13. Ajax + Php + Sql = Simply Superb! ( With Visitor Tracking )(11)
  14. Data Recovery(15)
  15. Php Tutorial: Making A Shoutbox(12)
  1. Web-based Ftp Client(10)
  2. Bsnl India Broadband - Best And Low Cost(8)
  3. Skydrive(9)
  4. What You Need Before You Can Create A Text-based Game..(7)
  5. Hard Drive Data Recovery Review(7)
  6. Internet Connection In Linux Through Mobile(4)
  7. Mambo/smf Connection(8)
  8. Mysql Overhead(3)
  9. Internet Connection Hack(6)
  10. How To Validate The Login Form Using Php Pcre(0)
  11. Which Language Is Easy And Secure Today For Web Development(2)
  12. Login System(6)
  13. Small Issues About Mysql Connector/j 5.1(2)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 05:14 PM