還有為什麼mysqld_safe會有兩隻啊?這個不是只是一開始的設定的shell嗎?
以下是我電腦的狀況:
- 代碼: 選擇全部
# /etc/mysql > netstat -lp | grep mysql
tcp 0 0 localhost:mysql *:* LISTEN 779/mysqld
unix 2 [ ACC ] STREAM LISTENING 5028 779/mysqld /var/run/mysqld/mysqld.sock
# /etc/mysql > ps axu | grep mysql
root 742 0.0 0.1 2308 1120 pts/0 S 18:18 0:00 /bin/sh /usr/bin/mysqld_safe
root 778 0.0 0.1 2308 1124 pts/0 S 18:18 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 779 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 780 0.0 0.0 1480 492 pts/0 S 18:18 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
mysql 781 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 782 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 783 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 784 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 785 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 786 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 787 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 788 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 789 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
mysql 790 0.0 2.1 87316 16196 pts/0 S 18:18 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock