Find file

buters franzi2005 at mail.ru
Mon Sep 1 09:40:04 UTC 2008


Thank you Mumia very much,

>Why do you need to find the files containing your database?

pg_ctl restart [-w] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] [-o "OPTIONS"]
This is a restart usage for pg_ctl, if a db should be restarted.

If I try:
**************************************
$ pg_ctl restart
**************************************

I get:
**************************************
pg_ctl: no database directory specified and environment variable PGDATA
unset
**************************************

There is in /var/lib/postgresql/ only a data directory, so-called data area
(a collection of dbs), under which all data are stored. But I want to know,
how I can only restart my db. Also I need a db directory.

Best Regards, buters.



Mumia W.-6 wrote:
> 
> On 08/29/2008 09:55 AM, buters wrote:
>> Hi all,
>> 
>> I'm trying to find a file in my system with "sudo find / -name file", but
>> I
>> can not. This is location of a database. With my database client I can
>> access this database. How can I find, where it is located? I need it to
>> db
>> restart.
>> 
>> Thanks beforehand,
>> best regards, buters.
> 
> What database software are you using? Mysql and Postgresql store their 
> databases in formats that don't reveal the database names in their file 
> names. Both Mysql and Postgresql will probably store their database 
> files somewhere under /var, but you'll either need the respective DB 
> clients or custom scripts if you need to fix databases themselves.
> 
> Why do you need to find the files containing your database?
> 
> 
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Find-file-tp19221473p19251710.html
Sent from the ubuntu-users mailing list archive at Nabble.com.





More information about the ubuntu-users mailing list