[root@srv001 etc]# netstat -tap | grep mysqltcp 0 0 *:mysql *:* LISTEN 3868/mysqld
[root@srv001 etc]# /etc/init.d/mysqld statusmysqld (pid 3868) in esecuzione...
[root@srv001 etc]# nmap localhostStarting Nmap 4.11 (
http://www.insecure.org/nmap/ ) at 2007-12-18 16:13 CET
Interesting ports on localhost.localdomain (127.0.0.1):
Not shown: 1668 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
25/tcp open smtp
80/tcp open http
110/tcp open pop3
111/tcp open rpcbind
143/tcp open imap
631/tcp open ipp
890/tcp open unknown
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
Nmap finished: 1 IP address (1 host up) scanned in 0.207 seconds
[root@srv001 etc]# cat /etc/my.cnf[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[root@srv001 etc]#