Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about mysql for linux

Status
Not open for further replies.

owenbrown

MIS
May 22, 2003
32
US
I noticed that mysql has the pid 1138
# netstat -lntp | grep :3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1138/mysqld

But the file /var/lib/mysql/server102.mhyhost.pid says the pid is 1197
root@server102 [/var/lib/mysql]# cat /var/lib/mysql/server102.mhyhost.pid
1197

Why is there this discrepency?

Also I noticed that mysql.sock has permissions...
srwxrwxrwx
I know this is not
chmod 7777 mysql.sock
chmod +t mysql.sock
or
chmod +s mysql.sock
How do you get those permissions and what does it mean?
 
does netstat tell u pid aslo. i am using linux 7.2 annd netstat does not have 'l' or 'p' option (thers is capital L for telling netlingk kernel patarmeter - whatever it means).

otherwise mysqld.pid contains thye pid

the 's' ins ls -l is indicating semaphore and is not set by nay permission
- if the entry is ordinary file
d - dir
l - symbolic link
p - named pipe
m - entryn is shared data




[ponder]
----------------
ur feedback is a very welcome desire
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top