FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 01-25-2011, 04:19 PM
ken
 
Default mysqld status discrepancy

Bug, explainable, or expected?? Checking the status of mysqld as root,
then as a regular user:

# /etc/init.d/mysqld status
mysqld (pid 4806) is running...

$ /etc/init.d/mysqld status
mysqld dead but subsys locked

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 01-25-2011, 04:31 PM
Jerry Franz
 
Default mysqld status discrepancy

On 01/25/2011 09:19 AM, ken wrote:
> Bug, explainable, or expected?? Checking the status of mysqld as root,
> then as a regular user:
>
> # /etc/init.d/mysqld status
> mysqld (pid 4806) is running...
>
> $ /etc/init.d/mysqld status
> mysqld dead but subsys locked
>

As expected. The PID file for MySQL is not normally world readable and
therefore the script cannot determine the PID to check if it is alive if
run as an regular user (other than as the 'mysql' user or 'root').

--
Benjamin Franz
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 10:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org