D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] partitions, mount and /usr/share



On Thursday 24 June 2004 12:30, Simon Waters wrote:
Neil Williams wrote:
| cp -r /oldvar/* /var

cp has some extra options to ensure you preserve more in a copy - I
usually use "-rp" as a minimum of this sort of thing. Not sure how much
it helps, just one of those habits which I probably thought about the
first time I did it.

I just found out why. After I copied /var, MySQL stopped running because cp -r 
had copied the tables as root.root ownership and MySQL couldn't update the 
permissions tables or log the activity or write the error report.

It looks not unreasonable to me - but backup first.

But of course!
;-)

-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3

Attachment: pgp00025.pgp
Description: signature


Lynx friendly