Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?
@  velma : (12 June 2013 - 01:27 PM) T_T We Should Deal Punishments To Procrastinators... Especially Me
@  Feelay : (12 June 2013 - 12:06 PM) As Well As Making It More Secure.

Photo
- - - - -

Help With Multi Tier Mysql Application Over Net


6 replies to this topic

#1 oncombeureum

oncombeureum

    Newbie [ Level 2 ]

  • Members
  • 28 posts
  • Interests:PHP, MySQL, SQL, Delphi.

Posted 21 May 2005 - 08:09 AM

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..

Edited by microscopic^earthling, 29 June 2005 - 05:23 AM.


#2 Alpha six

Alpha six

    Newbie [ Level 1 ]

  • Members
  • 5 posts
  • Location:Germany, Mannheim
  • Interests:COMPUTERS!!!!

Posted 24 May 2005 - 07:58 PM

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!

#3 oncombeureum

oncombeureum

    Newbie [ Level 2 ]

  • Members
  • 28 posts
  • Interests:PHP, MySQL, SQL, Delphi.

Posted 27 May 2005 - 02:18 PM

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

#4 mobious

mobious

    Newbie [ Level 1 ]

  • Members
  • 3 posts

Posted 30 May 2005 - 05:00 AM

why not just a mysql lib and connect to the server directly? it would be much faster and efficient.

#5 oncombeureum

oncombeureum

    Newbie [ Level 2 ]

  • Members
  • 28 posts
  • Interests:PHP, MySQL, SQL, Delphi.

Posted 03 June 2005 - 11:43 PM

can't do that...

as the database server protect the connection available only from inside connection only..
:D

#6 manymanymuch

manymanymuch

    Newbie [ Level 2 ]

  • Members
  • 13 posts

Posted 29 June 2005 - 04:53 AM

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.devarticl...h-PHP-NuSOAP/1/
http://www.aspfree.c...ting-and-Delphi

Although, they look kind of complicated and new. Maybe you only want something simpler. Anyway, hope this helps.

#7 miCRoSCoPiC^eaRthLinG

miCRoSCoPiC^eaRthLinG

    PsYcheDeLiC dR3aMeR

  • [MODERATOR]
  • 2,248 posts
  • Gender:Male
  • Location:Bangkok, Thailand
  • Interests:Photography, Magic Tricks, Numismatics & Philately to some extent, Being a nuisance in general (that's my favourite)
  • myCENTs:NEGATIVE[-21.50]

Posted 29 June 2005 - 05:21 AM

can't do that...

as the database server protect the connection available only from inside connection only..
:lol:

<{POST_SNAPBACK}>



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 :lol:

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 :lol:

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

Regards,
m^e



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users