LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   where Data of an application is stored in Linux ? (https://www.linuxquestions.org/questions/linux-newbie-8/where-data-of-an-application-is-stored-in-linux-4175514829/)

bayanaa 08-14-2014 01:45 PM

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

TobiSGD 08-14-2014 02:00 PM

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

bayanaa 08-14-2014 02:15 PM

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

TobiSGD 08-14-2014 03:39 PM

Quote:

Originally Posted by bayanaa (Post 5221133)
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).

suicidaleggroll 08-14-2014 03:39 PM

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


All times are GMT -5. The time now is 04:17 PM.