[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mysql server won't start,



On Sun, Feb 25, 2007 at 01:32:25PM -0800, tom arnall wrote:
> On Sunday 11 February 2007 21:57, Andy Smith wrote:
> > How did it go with the changing ownership of files that I
> > recommended?
> 
> still no luck. to wit:
> 
> debian:/var/log# chown -Rc mysql:adm /var/log/mysql
> 
> debian:/var/log# /etc/init.d/mysql start
> 
> Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
> 
> debian:/var/log# tail /var/log/daemon.log
> Feb 25 13:25:37 localhost mysqld[6044]: 070225 13:25:37  InnoDB: Starting 
> shutdown...

We need to see more of the log than this.  It has already started to
shut down by this point.  The answer will almost certainly be in
this log file.

> and if do mysqld i get:
> 
> debian:/var/log/mysql# mysqld

Never run mysqld as root.  This is probably how all your files in
/var/log/mysql got owned by root in the first place, and you may
have to go back and fix that up again now.  mysqld is run by the
script mysqld_safe which generally knows best.

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting
Encrypted mail welcome - keyid 0x604DE5DB

Attachment: signature.asc
Description: Digital signature


Reply to: