LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2014, 01:45 PM   #1
bayanaa
LQ Newbie
 
Registered: May 2012
Posts: 13

Rep: Reputation: Disabled
where Data of an application is stored in Linux ?


Dears,

lets say that I have a server with a local storage and NFS storage.

I want to install an application, lets say MySQL,

how to tell Linux that save data of Databases in NFS ??

how can I costume where application should stored its data during installing packages of the application ??

Thanks

Last edited by bayanaa; 08-14-2014 at 01:48 PM.
 
Old 08-14-2014, 02:00 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You don't do that during installation. After installing MySQL you edit its configuration files (for MySQL see /etc/mysql) to your likings, for example the storage path of databases is configured by the option datadir in the section [mysqld] in the file /etc/mysql/my.cnf (at least on Debian).
 
Old 08-14-2014, 02:15 PM   #3
bayanaa
LQ Newbie
 
Registered: May 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank you TobiSGD, but I have mentioned MySQL as an example, I need to control where data of any application should to be stored.

how to do that, is there a standard way in Linux for all application such Windows, or that depend on configurations of the application ??

Last edited by bayanaa; 08-14-2014 at 02:22 PM.
 
Old 08-14-2014, 03:39 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by bayanaa View Post
Thank you TobiSGD, but I have mentioned MySQL as an example, I need to control where data of any application should to be stored.

how to do that, is there a standard way in Linux for all application such Windows, or that depend on configurations of the application ??
It usually depends on application configuration, though many applications store data in /var/lib (especially server type and system management applications) or the user's $HOME directory (mostly apps where per user storage makes sense).
 
Old 08-14-2014, 03:39 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
For the most part, each application logs its data wherever you tell it to.
 
  


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
Mount another HDD with stored DATA ashokkarkar Linux - General 1 11-14-2013 02:25 PM
print all data at once, stored in bash array newbie0101 Programming 4 02-02-2012 07:39 AM
Where is the data for each pixel stored? Dogs General 2 12-20-2009 02:55 AM
[SOLVED] Types of data that can be stored in rrdtools Buddhike G Linux - Software 1 05-27-2008 08:57 AM
Copy Data stored on MBR mrpc_cambodia Linux - General 3 12-19-2004 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:46 AM.

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