LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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 02:48 PM.
 
Old 08-14-2014, 03:00 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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, 03: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 03:22 PM.
 
Old 08-14-2014, 04:39 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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, 04:39 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,260

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 05:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration