LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-07-2009, 06:30 AM   #1
Mr.mick-duck
Member
 
Registered: Aug 2004
Location: Saudi Arabia
Distribution: Mandrake
Posts: 60

Rep: Reputation: 15
sending data to server?


hi guys...
i have a project in the university which is to make a data base program that send data to a server which will show the the data to another user on the internet....
but i don't know how to transfere data from the program to the server...
can any body help?
 
Old 07-07-2009, 08:09 AM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
That sounds like a homework problem, which we don't answer per the rules here..

Don't expect people here to do your school work for you, you won't learn anything that way..

If you had a solution already started and had a specific minor issue you needed help with, then assistance might be provided. but asking us to provide the overall solution to the issue isn't going to happen..

Best of luck, or narrow down the scope of the question..
 
Old 07-07-2009, 11:33 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
What farslayer said, notwithstanding...
You will need to start by breaking the problem set down into MUCH smaller components. Start by clearly defining what you mean by the various components: 'server', 'data base program', 'send data', 'show the data', what you mean by 'data', etc. Maybe you should define what computing platform(s) you wish to use or are required to use. When you have done this basic first step, you may have identified more specific questions that someone here can reasonably answer.
--- rod.
 
Old 07-07-2009, 07:46 PM   #4
Mr.mick-duck
Member
 
Registered: Aug 2004
Location: Saudi Arabia
Distribution: Mandrake
Posts: 60

Original Poster
Rep: Reputation: 15
what i mean is what opensource tool i can use to send data (from data base like mysql) to a dtata base on a server?
 
Old 07-08-2009, 09:29 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Do you mean you want to make a copy of the database, and transfer that copy to another database server? In your original post, it sounded like you want to be able to extract specific data from the database, and display it for an end-user. This is fairly common practice. An application, that you would have to write as a PHP or CGI application running on a web server (Apache, for instance), would fetch application-specific data from a database server, and then format it as a web page according to the specifications of the application. The end-user would view and/or manipulate the data using a web browser.
The basic components to do this are: database server (DBMS) such as mySQL or PostgreSQL, web server such as Apache, the application code that you write (in PHP, Perl, etc.), and any web browser. Most modern Linux distributions include all of these components, and if not included, are easily acquired and installed. Just add code.
If you simply want to copy a database from one database manager to another, then there are at least a couple of options. You can do a 'dump' of the database using the tools provided by whatever DBMS you use. The resulting file can be transferred to another host, and loaded as a new database. This requires the source and destination DBMSs to be the same product, and probably the same or similar versions. The file transfer can be done using any number of common file transfer protocols such as SFTP, SCP, FTP (not preferred), etc. Alternatively, you could write an application that makes concurrent database connections to the two DBMSs, queries the source database and writes the results to the destination database. You would use any of a number of programming languages in conjunction with libraries that support access to the DBMSs using the given programming language. There are a few GUI tools such as PgAdmin (for Postgresql), which may allow you to connect to multiple DBMS hosts, and may be capable of duplicating all or parts of a database on another DBMS server.
Now, you need to start defining your problem space more clearly. Do as I suggested in my previous post, and identify the various elements of your problem in specific terms. Your question, as posed, is far too vague for anyone to offer any concrete solution.
--- rod.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux server sending data to public ip sp149 Linux - Security 5 05-12-2009 11:25 AM
UDP server: how to stop the server sending data kumarvkm Linux - Newbie 0 02-21-2009 03:33 PM
Sending data nonstop..... c9876543210 Red Hat 2 01-25-2006 07:23 PM
Laptop keeps sending data every second? mikegorb Linux - Newbie 6 11-16-2004 05:54 AM
Sending data from one server to the other ganninu Linux - General 6 12-10-2003 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration