pureftpd-mysql don't start - mysql

I followed this tutorial to install pureftpd-mysql but I can't login with the example user or any other user.
here the output from netstat -tnlp
[05:48 PM]-[vagrant#local]-[~]
$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.56.101:28521 0.0.0.0:* LISTEN 26211/pure-ftpd (ID
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2808/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 2252/redis-server 1
tcp 0 0 192.168.56.101:34286 0.0.0.0:* LISTEN 26133/pure-ftpd (ID
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1641/rpcbind
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 15396/pure-ftpd (SE
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 5448/sshd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3522/exim4
tcp 0 0 0.0.0.0:46239 0.0.0.0:* LISTEN 1672/rpc.statd
tcp6 0 0 :::34221 :::* LISTEN 1672/rpc.statd
tcp6 0 0 :::111 :::* LISTEN 1641/rpcbind
tcp6 0 0 :::21 :::* LISTEN 15396/pure-ftpd (SE
tcp6 0 0 :::22 :::* LISTEN 5448/sshd
tcp6 0 0 ::1:25 :::* LISTEN 3522/exim4
Here is my /etc/pure-ftpd/db/mysql.conf
$ cat /etc/pure-ftpd/db/mysql.conf
# MYSQLServer 127.0.0.1
# MYSQLPort 3306
MYSQLSocket /var/run/mysqld/mysqld.sock
MYSQLUser root
MYSQLPassword 123
MYSQLDatabase pureftpd
# You can also use "any", "cleartext", "crypt", "sha1", "md5" or "password"
MYSQLCrypt sha1
MYSQLGetPW SELECT Password FROM users WHERE User='\L'
MYSQLGetUID SELECT Uid FROM users WHERE User='\L'
#MYSQLDefaultUID 1000
MYSQLGetGID SELECT Gid FROM users WHERE User='\L'
#MYSQLDefaultGID 1000
MYSQLGetDir SELECT Dir FROM users WHERE User='\L'
MySQLGetQTAFS SELECT QuotaFiles FROM users WHERE User='\L'
MySQLGetQTASZ SELECT QuotaSize FROM users WHERE User='\L'
# MySQLGetRatioUL SELECT ULRatio FROM users WHERE User='\L'
# MySQLGetRatioDL SELECT DLRatio FROM users WHERE User='\L'
MySQLGetBandwidthUL SELECT ULBandwidth FROM users WHERE User='\L'
MySQLGetBandwidthDL SELECT DLBandwidth FROM users WHERE User='\L'
after I restart the the server, the status don't return a good result.
with ls -la /home I get this:
[05:45 PM]-[vagrant#local]-[~]
$ ls -la /home
total 16
drwxr-xr-x 4 root root 4096 May 26 17:36 ./
drwxr-xr-x 26 root root 4096 May 21 17:13 ../
dr-xr-xr-x 3 ftp ftp 4096 May 26 17:36 ftp/
drwxr-xr-x 7 vagrant vagrant 4096 May 26 17:15 vagrant/
my users-table with SELECT * FROM users;
mysql> mysql> SELECT * FROM users;
+---------+--------+------------------------------------------+------+------+------------+-------------+-------------+---------+----------+-----------+------------+
| User | status | Password | Uid | Gid | Dir | ULBandwidth | DLBandwidth | comment | ipaccess | QuotaSize | QuotaFiles |
+---------+--------+------------------------------------------+------+------+------------+-------------+-------------+---------+----------+-----------+------------+
| example | 1 | 88ea39439e74fa27c09a4fc0bc8ebe6d00978392 | 2000 | 2000 | /home/test | 100 | 100 | | * | 20 | 0 |
+---------+--------+------------------------------------------+------+------+------------+-------------+-------------+---------+----------+-----------+------------+
1 row in set (0.00 sec)
sudo mc /var/log

Related

MariaDB 10.3 Replication doesn't work -> Exec_Master_Log_Pos does not change

I configured a replication cluster with MariaDB 10.3. I can connect from my slave to my master and all write statements from my master is automatically copied to my relay-bin files on my slaves. But then the queries in my relay bin file are not executed on my databases. Furthermore the Exec_Master_Log_Pos does not change meanwhile the Read_Master_Log_Pos does.
I cannot stop the slave because if i do the process hangs and i have to kill it. the Seconds Behind Master grows...
here are my show slave status on my slave server:
MariaDB [(none)]> show slave status \G
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: mymaster.test.net
Master_User: repadmin
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000001
Read_Master_Log_Pos: 498
Relay_Log_File: slave-relay-bin.000002
Relay_Log_Pos: 555
Relay_Master_Log_File: mysql-bin.000001
Slave_IO_Running: Yes
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 328
Relay_Log_Space: 1038
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: 52
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 0
Last_SQL_Error:
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_SSL_Crl:
Master_SSL_Crlpath:
Using_Gtid: No
Gtid_IO_Pos:
Replicate_Do_Domain_Ids:
Replicate_Ignore_Domain_Ids:
Parallel_Mode: conservative
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State: Update
Slave_DDL_Groups: 0
Slave_Non_Transactional_Groups: 0
Slave_Transactional_Groups: 1
1 row in set (0.000 sec)
show processlist:
10 | system user | | NULL | Slave_IO | 1766 | Waiting for master to send event | NULL | 0.000 |
| 11 | system user | | testdb | Slave_SQL | 183 | Update | insert into test values (10) | 0.000 |
It seems that the update process always hangs.
As i said before the queries are copied to my slaves relays-logs but not executed on my database.

Cannot see MySQL tables after moving database dir with symbolic link

I'm running out of space on the partition where MySQL is installed so I tried moving my largest database to a new partition and symlinked this in the data directory. When I try to use this database I get the following error
mysql> use fb20;
Database changed
mysql> show tables;
ERROR 1018 (HY000): Can't read dir of './fb20/' (errno: 13)
I've checked that symlinks are enabled:
mysql> show variables like 'have_symlink';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| have_symlink | YES |
+---------------+-------+
All of the permissions look correct. The MySQL data directory is /data:
root> ll /data/
drwxr-x--- 243 mysql mysql 8192 Feb 21 08:02 mysql/
root> ll /data/mysql/ | grep fb20
lrwxrwxrwx 1 mysql mysql 19 Feb 21 08:02 fb20 -> /sandata/mysql/fb20/
and the new directory is /sandata:
root> ll /sandata/
drwxr-x--- 3 mysql mysql 60 Feb 20 20:32 mysql/
root> ll /sandata/mysql/
total 360
drwxr-x--- 3 mysql mysql 60 Feb 20 20:32 ./
drwxrwxr-x 35 root perma 4096 Feb 20 19:59 ../
drwx------ 2 mysql mysql 303104 Feb 15 12:20 fb20/
Not sure what I am doing wrong.
Based on the comment I added the following lines to the file /etc/apparmor.d/usr.sbin.mysqld
/sandata/mysql/ r,
/sandata/mysql/** rwk,
and then reloaded the profile (restarting apparmor did not work):
sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.mysqld

MySQL Cluster error: 1005: Can't create table 'ndb_schema' (errno: 13)

I'm having troubles with my MySQL Cluster Test-setup:
I have two machines running Ubuntu and Docker (using a multi-host network) and each node (ndb_mgm, ndbd and mysqld) runs via Docker. The setup is as follows:
Machine 1:
ndb_mgmd
ndbd1
mysqld1
Machine 2:
ndbd2
mysqld2
When I start the mysqld on one machine, it connects to the manager and wants to initiate the cluster, but its unable to create the table, The whole NDB log on a mysqld instance after a fresh start:
2016-08-02 09:08:57 135 [Note] NDB: Changed global value of binlog_format from STATEMENT to MIXED
2016-08-02 09:08:58 135 [Note] NDB: NodeID is 4, management server 'ndb_mgmd:1186'
2016-08-02 09:08:58 135 [Note] NDB[0]: NodeID: 4, all storage nodes connected
2016-08-02 09:08:58 135 [Warning] NDB: server id set to zero - changes logged to bin log with server id zero will be logged with another server id by slave mysqlds
2016-08-02 09:08:58 135 [Note] NDB Binlog: Starting...
2016-08-02 09:08:58 135 [Note] NDB Binlog: Started
2016-08-02 09:08:58 135 [Note] NDB Binlog: Setting up
2016-08-02 09:08:58 135 [Note] NDB Binlog: Created schema Ndb object, reference: 0x80040004, name: 'Ndb Binlog schema change monitoring'
2016-08-02 09:08:58 135 [Note] NDB Binlog: Created injector Ndb object, reference: 0x80050004, name: 'Ndb Binlog data change monitoring'
2016-08-02 09:08:58 135 [Note] NDB Binlog: Setup completed
2016-08-02 09:08:58 135 [Note] NDB Binlog: Wait for server start completed
2016-08-02 09:08:58 135 [Note] NDB Util: Starting...
2016-08-02 09:08:58 135 [Note] NDB Util: Wait for server start completed
2016-08-02 09:08:58 135 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: bf07c00a-5890-11e6-83a3-02420a000a1e.
2016-08-02 09:08:58 135 [Note] NDB Index Stat: Starting...
2016-08-02 09:08:58 135 [Note] NDB Index Stat: Wait for server start completed
2016-08-02 09:08:58 135 [Note] Server hostname (bind-address): '*'; port: 3306
2016-08-02 09:08:58 135 [Note] IPv6 is available.
2016-08-02 09:08:58 135 [Note] - '::' resolves to '::';
2016-08-02 09:08:58 135 [Note] Server socket created on IP: '::'.
2016-08-02 09:08:58 135 [Note] Event Scheduler: Loaded 0 events
2016-08-02 09:08:58 135 [Note] /usr/local/mysql-cluster-gpl-7.4.12-linux-glibc2.5-x86_64/bin/mysqld: ready for connections.
Version: '5.6.31-ndb-7.4.12-cluster-gpl' socket: '/tmp/mysql.sock' port: 3306 MySQL Cluster Community Server (GPL)
2016-08-02 09:08:58 135 [Note] NDB Util: Wait for cluster to start
2016-08-02 09:08:58 135 [Note] NDB Util: Started
2016-08-02 09:08:58 135 [Note] NDB Binlog: Check for incidents
2016-08-02 09:08:58 135 [Note] NDB Binlog: Wait for cluster to start
2016-08-02 09:08:58 135 [Note] NDB Index Stat: Wait for cluster to start
2016-08-02 09:08:58 135 [Note] NDB Index Stat: Started
2016-08-02 09:08:58 135 [Note] created index stats Ndb object: reference 0x80070004, name: 'Ndb Index Statistics monitoring'
2016-08-02 09:08:58 135 [Note] NDB: Creating mysql.ndb_schema
2016-08-02 09:08:58 135 [ERROR] NDB: Query 'CREATE TABLE IF NOT EXISTS mysql.ndb_schema ( db VARBINARY(63) NOT NULL,name VARBINARY(63) NOT NULL,slock BINARY(32) NOT NULL,query BLOB NOT NULL,node_id INT UNSIGNED NOT NULL,epoch BIGINT UNSIGNED NOT NULL,id INT UNSIGNED NOT NULL,version INT UNSIGNED NOT NULL,type INT UNSIGNED NOT NULL,PRIMARY KEY USING HASH (db,name) ) ENGINE=NDB CHARACTER SET latin1' failed, error: 1005: Can't create table 'ndb_schema' (errno: 13)
The last line shows, that its unable to create a table:
NDB: Query 'CREATE TABLE ...' failed, error: 1005: Can't create table 'ndb_schema' (errno: 13)
If i checkout the ndb_mgm configuration, every node seem connected correctly:
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=2 #10.0.10.20 (mysql-5.6.31 ndb-7.4.12, Nodegroup: 0, *)
id=3 #10.0.10.21 (mysql-5.6.31 ndb-7.4.12, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 #10.0.10.10 (mysql-5.6.31 ndb-7.4.12)
[mysqld(API)] 2 node(s)
id=4 #10.0.10.30 (mysql-5.6.31 ndb-7.4.12)
id=5 #10.0.10.31 (mysql-5.6.31 ndb-7.4.12)
The configuration for ndb_mgmd:
[ndbd default]
NoOfReplicas=2
DataMemory=80M
IndexMemory=18M
[ndb_mgmd]
hostname=10.0.10.10
datadir=/var/lib/mysql-cluster
[ndbd]
hostname=10.0.10.20
datadir=/usr/local/mysql/data
[ndbd]
hostname=10.0.10.21
datadir=/usr/local/mysql/data
[mysqld]
hostname=10.0.10.30
[mysqld]
hostname=10.0.10.31
Each mysqld is configured as followed:
[mysqld]
ndbcluster
log-error=/var/log/mysql/error.log
Running the status of the cluster on a mysqld instance shows no errors:
mysql> SHOW ENGINE NDB STATUS
-> ;
+------------+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
| Type | Name | Status |
+------------+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
| ndbcluster | connection | cluster_node_id=4, connected_host=ndb_mgmd, connected_port=1186, number_of_data_nodes=2, number_of_ready_data_nodes=2, connect_count=0 |
| ndbcluster | NdbTransaction | created=2, free=2, sizeof=368 |
| ndbcluster | NdbOperation | created=4, free=4, sizeof=944 |
| ndbcluster | NdbIndexScanOperation | created=0, free=0, sizeof=1152 |
| ndbcluster | NdbIndexOperation | created=0, free=0, sizeof=952 |
| ndbcluster | NdbRecAttr | created=0, free=0, sizeof=88 |
| ndbcluster | NdbApiSignal | created=16, free=16, sizeof=144 |
| ndbcluster | NdbLabel | created=0, free=0, sizeof=200 |
| ndbcluster | NdbBranch | created=0, free=0, sizeof=32 |
| ndbcluster | NdbSubroutine | created=0, free=0, sizeof=72 |
| ndbcluster | NdbCall | created=0, free=0, sizeof=24 |
| ndbcluster | NdbBlob | created=0, free=0, sizeof=496 |
| ndbcluster | NdbReceiver | created=0, free=0, sizeof=128 |
| ndbcluster | NdbLockHandle | created=0, free=0, sizeof=48 |
| ndbcluster | binlog | latest_epoch=0, latest_trans_epoch=200377404227594, latest_received_binlog_epoch=0, latest_handled_binlog_epoch=0, latest_applied_binlog_epoch=0 |
+------------+-----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+
15 rows in set (0.00 sec)
If I want to create a table manually on the cluster, i get the following error:
mysql> CREATE DATABASE cluster;
Query OK, 1 row affected (0.00 sec)
mysql> CREATE TABLE cluster_test (name VARCHAR(20), value VARCHAR(20)) ENGINE=ndbcluster;
ERROR 1296 (HY000): Got error 4009 'Cluster Failure' from NDBCLUSTER
mysql> show warnings;
+-------+------+--------------------------------------------------+
| Level | Code | Message |
+-------+------+--------------------------------------------------+
| Error | 1296 | Got error 4009 'Cluster Failure' from NDBCLUSTER |
+-------+------+--------------------------------------------------+
1 row in set (0.00 sec)
I don't know where to get a detailed error description. If I'm right Errno 13 is usually some kind of permission error, but every node has the right permissions to the folders (they actually wrote some files). If you need a detailed folder permission list, please let me know.
Thanks in advice!
Currently the problem is not solved, but after some research the problem seems the AUFS storage inside Docker. I described here the issue.
I got it working using less layers inside the image. I combined a lot of commands inside one RUN directive.
Here are the Dockerfiles that work for me:
mysql daemon:
FROM ubuntu
RUN apt-get update && \
apt-get install -y libcam-pdf-perl build-essential libaio1 libaio-dev && \
cpan File::Copy \
Sys::Hostname \
Data::Dumper
// .. install mysql cluster files to /usr/local/mysql
WORKDIR /usr/local/mysql
RUN groupadd mysql && \
useradd -g mysql -s /bin/false mysql && \
chown -R root . && \
chown -R mysql data && \
chgrp -R mysql . && \
scripts/mysql_install_db --user=mysql
ENV PATH=/usr/local/mysql/bin:$PATH
USER mysql
ndbd:
FROM ubuntu
// .. install mysql cluster files to /usr/local/bin
RUN chmod +x /usr/local/bin/ndb* && \
mkdir -p /usr/local/mysql/data
ndb_mgm:
FROM ubuntu
// .. install mysql cluster files to /usr/local/bin
RUN chmod +x /usr/local/bin/ndb_mgm* && \
mkdir -p /var/lib/mysql-cluster
Maybe this helps someone!

export result of the query with INTO OUTFILE

I don't find the exported file into /tmp folder. Where MYSQL export that file ?
mysql> SELECT oid,t FROM mytable INTO OUTFILE '/tmp/bbb.txt' CHARACTER SET latin1 FIELDS TERMINATED BY '\t' LINES TERMINATED BY '\r\n';
ERROR 1086 (HY000): File '/tmp/bbb.txt' already exists
mysql> \q
Bye
usr#locahost:/tmp$ ls -l /tmp
total 210308
-rw------- 1 jetty jetty 0 Feb 27 2014 31020.jsvc_up
-rw------- 1 root root 2210 Dec 13 2013 apticron.hFScRvN3T6
drwxr-xr-x 2 root root 4096 May 25 2014 graphs
srwxr-xr-x 1 root root 0 Aug 6 2014 haproxy.socket
drwx------ 2 jetty jetty 4096 Feb 27 2014 hsperfdata_jetty
drwxr-xr-x 2 root root 4096 Jun 16 04:45 hsperfdata_root
drwx------ 2 usr users 4096 Jul 15 03:36 mc-usr
-rw-r--r-- 1 root root 64 Jul 5 15:18 puppet_failures
-rw-r--r-- 1 usr users 64 Jul 15 03:29 puppet_failures00
usr#locahost:/tmp$

linux server running slow if mysql (mariadb) service is running

I have setup an Ubuntu 14.04 LTS on i7-2600 box with 24G ram. I use mariadb-10.0.11 to replace mysql for more performance. And I use matmul.c (c) 2009, Rajorshi Biswas to test the system performance.The result is unusual, there is no access to mysql (mariab) server and the matnul.c result is
root#mercury:~/openmp/testopenmp# ./matmul.gcc
Enter dimension ('N' for 'NxN' matrix) (100-2000): 2000
Populating array with random values...
Completed array init.
Crunching without OMP... took 55.691565 seconds.
Crunching with OMP... took 15.113471 seconds.
but if i turn mysql mariadb off by services mysql stop the speed is much faster.
root#mercury:~/openmp/testopenmp# ./matmul.gcc
Enter dimension ('N' for 'NxN' matrix) (100-2000): 2000
Populating array with random values...
Completed array init.
Crunching without OMP... took 26.777045 seconds.
Crunching with OMP... took 3.646939 seconds
The single thread only use half time and the OMP version even faster.
Is there is configuration issues to make such performance slow down issue or it just natural??
Remark, there is no connection to mysql during the test.
I enclosed the matural.c and mysql.cnf
(the use of matural.c is just an example, all other program run slower 50% when mysql is running.)
/*
* Sample program to test runtime of simple matrix multiply
* with and without OpenMP on gcc-4.3.3-tdm1 (mingw)
*
* (c) 2009, Rajorshi Biswas
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <assert.h>
#include <omp.h>
int main(int argc, char **argv)
{
int i,j,k;
int n;
double temp;
double start, end, run;
printf("Enter dimension ('N' for 'NxN' matrix) (100-2000): ");
scanf("%d", &n);
assert( n >= 100 && n <= 2000 );
int **arr1 = malloc( sizeof(int*) * n);
int **arr2 = malloc( sizeof(int*) * n);
int **arr3 = malloc( sizeof(int*) * n);
for(i=0; i<n; ++i) {
arr1[i] = malloc( sizeof(int) * n );
arr2[i] = malloc( sizeof(int) * n );
arr3[i] = malloc( sizeof(int) * n );
}
printf("Populating array with random values...\n");
srand( time(NULL) );
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
arr1[i][j] = (rand() % n);
arr2[i][j] = (rand() % n);
}
}
printf("Completed array init.\n");
printf("Crunching without OMP...");
fflush(stdout);
start = omp_get_wtime();
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
temp = 0;
for(k=0; k<n; ++k) {
temp += arr1[i][k] * arr2[k][j];
}
arr3[i][j] = temp;
}
}
end = omp_get_wtime();
printf(" took %f seconds.\n", end-start);
printf("Crunching with OMP...");
fflush(stdout);
start = omp_get_wtime();
#pragma omp parallel for private(i, j, k, temp)
for(i=0; i<n; ++i) {
for(j=0; j<n; ++j) {
temp = 0;
for(k=0; k<n; ++k) {
temp += arr1[i][k] * arr2[k][j];
}
arr3[i][j] = temp;
}
}
end = omp_get_wtime();
printf(" took %f seconds.\n", end-start);
return 0;
}
And my.cnf
root#mercury:~/openmp/testopenmp# cat /etc/mysql/my.cnf
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
#port = 3306
socket = /run/mysqld/mysqld.sock
#character_set_server = utf8
# Here is entries for some specific programs
# The following values assume you have at least 32M ram
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /run/mysqld/mysqld.sock
nice = 19
[mysqld]
#
# * Basic Settings
#
#
# * IMPORTANT
# If you make changes to these settings and your system uses apparmor, you may
# also need to also adjust /etc/apparmor.d/usr.sbin.mysqld.
#
skip-host-cache
skip-name-resolve
character_set_server = utf8
init_connect = 'SET NAMES utf8'
user = mysql
socket = /run/mysqld/mysqld.sock
#port = 3306
basedir = /usr/local/mysql
datadir = /usr/local/mysql/data
tmpdir = /tmp
#log = /var/log/mysql.log
general_log_file = /var/log/mysql.log
general_log = 1
# skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size = 16M
max_allowed_packet = 1M
sort_buffer_size = 1M
net_buffer_length = 16K
myisam_sort_buffer_size = 8M
# Don't listen on a TCP/IP port at all.
# skip-networking
# required unique id between 1 and 2^32 - 1
server-id = 1
# Uncomment the following if you are using BDB tables
#bdb_cache_size = 4M
#bdb_max_lock = 10000
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /srv/mysql
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /srv/mysql
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
#!includedir /etc/mysql/conf.d/
root#mercury:/etc/mysql/conf.d# cat *
#
# The MySQL 5.6 database server configuration file.
#
# This custom MySQL 5.6 specific configuration file
# adds on top of the existing default my.cnf file at
# - /etc/mysql/my.cnf.
#
# Please add any extra MySQL 5.6 options in this file
# for sake of clarity.
#
# You may uncomment any existing option to enable it
#
# sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe]
syslog
root#mercury:/etc/mysql/conf.d#
The issue is not solved, so I enclosed the processes list before and after mysql service running. Sorry to put as an answer as the question is over 300000 chars.
The processes list when mysql service is running
root#mercury:~# ps -elf
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 8348 poll_s 21:07 ? 00:00:00 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea 21:07 ? 00:00:00 [kthreadd]
1 S root 3 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/0]
1 S root 4 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:0]
1 S root 5 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/0:0H]
1 S root 6 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:0]
1 S root 7 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_sched]
1 S root 8 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/0]
1 S root 9 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/1]
1 S root 10 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/2]
1 S root 11 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/3]
1 S root 12 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/4]
1 S root 13 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/5]
1 S root 14 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/6]
1 S root 15 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/7]
1 S root 16 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_bh]
1 S root 17 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/0]
1 S root 18 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/1]
1 S root 19 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/2]
1 S root 20 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/3]
1 S root 21 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/4]
1 S root 22 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/5]
1 S root 23 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/6]
1 S root 24 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/7]
1 S root 25 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/0]
5 S root 26 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/0]
5 S root 27 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/1]
1 S root 28 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/1]
1 S root 29 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/1]
1 S root 30 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:0]
1 S root 31 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/1:0H]
5 S root 32 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/2]
1 S root 33 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/2]
1 S root 34 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/2]
1 S root 35 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:0]
1 S root 36 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/2:0H]
5 S root 37 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/3]
1 S root 38 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/3]
1 S root 39 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/3]
1 S root 40 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:0]
1 S root 41 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/3:0H]
5 S root 42 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/4]
1 S root 43 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/4]
1 S root 44 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/4]
1 S root 45 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:0]
1 S root 46 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/4:0H]
5 S root 47 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/5]
1 S root 48 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/5]
1 S root 49 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/5]
1 S root 50 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:0]
1 S root 51 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/5:0H]
5 S root 52 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/6]
1 S root 53 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/6]
1 S root 54 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/6]
1 S root 55 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:0]
1 S root 56 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/6:0H]
5 S root 57 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/7]
1 S root 58 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/7]
1 S root 59 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/7]
1 S root 60 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:0]
1 S root 61 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/7:0H]
1 S root 62 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [khelper]
5 S root 63 2 0 80 0 - 0 devtmp 21:07 ? 00:00:00 [kdevtmpfs]
1 S root 64 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [netns]
1 S root 65 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [writeback]
1 S root 66 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kintegrityd]
1 S root 67 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 68 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:0]
1 S root 69 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kblockd]
1 S root 70 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ata_sff]
1 S root 71 2 0 80 0 - 0 hub_th 21:07 ? 00:00:00 [khubd]
1 S root 72 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [md]
1 S root 73 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [devfreq_wq]
1 S root 74 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:1]
1 S root 75 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:1]
1 S root 79 2 0 80 0 - 0 watchd 21:07 ? 00:00:00 [khungtaskd]
1 S root 80 2 0 80 0 - 0 kswapd 21:07 ? 00:00:00 [kswapd0]
1 S root 81 2 0 85 5 - 0 ksm_sc 21:07 ? 00:00:00 [ksmd]
1 S root 82 2 0 99 19 - 0 khugep 21:07 ? 00:00:00 [khugepaged]
1 S root 83 2 0 80 0 - 0 fsnoti 21:07 ? 00:00:00 [fsnotify_mark]
1 S root 84 2 0 80 0 - 0 ecrypt 21:07 ? 00:00:00 [ecryptfs-kthrea]
1 S root 85 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [crypto]
1 S root 97 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kthrotld]
1 S root 98 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:1]
1 S root 99 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:1]
1 S root 118 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [deferwq]
1 S root 119 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [charger_manager]
1 S root 128 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:1]
1 S root 179 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kpsmoused]
1 S root 180 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:2]
1 S root 181 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:1]
1 S root 182 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_0]
1 S root 183 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_1]
1 S root 184 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_2]
1 S root 185 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_3]
1 S root 186 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_4]
1 S root 187 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_5]
1 S root 188 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:2]
1 S root 189 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:3]
1 S root 190 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:4]
1 S root 191 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:5]
1 S root 192 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:6]
1 S root 193 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:7]
1 S root 194 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_6]
1 S root 195 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_7]
1 S root 196 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:8]
1 S root 197 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:9]
1 S root 198 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:1]
1 S root 199 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:1]
1 S root 201 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:10]
1 S root 206 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 214 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:1]
1 S root 215 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-worker-1]
1 S root 216 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-genwork-1]
1 S root 217 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-submit-1]
1 S root 218 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delalloc-]
1 S root 219 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-fixup-1]
1 S root 220 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-1]
1 S root 221 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 222 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-rmw-1]
1 S root 223 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-rai]
1 S root 224 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 225 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 226 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-freespace]
1 S root 227 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delayed-m]
1 S root 228 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-cache-1]
1 S root 229 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-readahead]
1 S root 230 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-flush_del]
1 S root 231 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-qgroup-re]
1 S root 232 2 0 80 0 - 0 cleane 21:07 ? 00:00:00 [btrfs-cleaner]
1 S root 233 2 0 80 0 - 0 transa 21:07 ? 00:00:00 [btrfs-transacti]
1 S root 402 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:1]
1 S root 423 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 437 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda1-8]
1 S root 438 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 442 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda5-8]
1 S root 443 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 447 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda6-8]
1 S root 448 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 469 1 0 80 0 - 5001 poll_s 21:07 ? 00:00:00 upstart-udev-bridge --daemon
5 S root 478 1 0 80 0 - 12888 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-udevd --daemon
5 S message+ 488 1 0 80 0 - 9810 ep_pol 21:07 ? 00:00:00 dbus-daemon --system --fork
1 S root 556 2 0 9 - - 0 irq_th 21:07 ? 00:00:00 [irq/61-mei_me]
4 S root 557 1 0 80 0 - 10863 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-logind
5 S syslog 599 1 0 80 0 - 63962 poll_s 21:07 ? 00:00:00 rsyslogd
1 S root 624 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [led_workqueue]
1 S root 678 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-2]
1 S root 700 1 0 80 0 - 3986 poll_s 21:07 ? 00:00:00 upstart-file-bridge --daemon
1 S root 717 1 0 80 0 - 3815 poll_s 21:07 ? 00:00:00 upstart-socket-bridge --daemon
4 S root 1008 1 0 80 0 - 3955 n_tty_ 21:07 tty4 00:00:00 /sbin/getty -8 38400 tty4
4 S root 1015 1 0 80 0 - 3955 n_tty_ 21:07 tty2 00:00:00 /sbin/getty -8 38400 tty2
4 S root 1016 1 0 80 0 - 3955 n_tty_ 21:07 tty3 00:00:00 /sbin/getty -8 38400 tty3
1 S root 1033 1 0 80 0 - 1092 poll_s 21:07 ? 00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socke
4 S root 1034 1 0 80 0 - 15342 poll_s 21:07 ? 00:00:00 /usr/sbin/sshd -D
1 S root 1036 1 0 80 0 - 5914 hrtime 21:07 ? 00:00:00 cron
1 S daemon 1038 1 0 80 0 - 4785 hrtime 21:07 ? 00:00:00 atd
5 S root 1078 1 0 80 0 - 4816 hrtime 21:07 ? 00:00:00 /usr/sbin/irqbalance
1 S root 1278 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1279 1 0 80 0 - 1085 pipe_w 21:07 ? 00:00:00 logger -s -p daemon.error -t ipsec__plutorun
1 S root 1280 1278 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1282 1278 0 80 0 - 1111 pipe_w 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutoload --wait no --pos
4 S root 1285 1280 0 80 0 - 23516 poll_s 21:07 ? 00:00:00 /usr/lib/ipsec/pluto --nofork --secretsfile /etc/
1 S root 1389 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 0
1 S root 1390 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 1
1 S root 1392 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 2
1 S root 1393 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 3
1 S root 1394 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 4
1 S root 1395 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 5
1 S root 1396 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 6
0 S root 1532 1285 0 80 0 - 1589 poll_s 21:07 ? 00:00:00 _pluto_adns
4 S root 1552 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadi
4 S mysql 1702 1552 0 99 19 - 174953 poll_s 21:07 ? 00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/
5 S root 1744 1 0 80 0 - 6226 sigsus 21:07 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
5 S www-data 1746 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1747 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1748 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1749 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S root 1761 1 0 80 0 - 108450 ep_pol 21:07 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-f
5 S www-data 1762 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
5 S www-data 1763 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
4 S root 1860 1 0 80 0 - 6336 ep_pol 21:07 ? 00:00:00 /usr/lib/postfix/master
4 S postfix 1869 1860 0 80 0 - 6852 ep_pol 21:07 ? 00:00:00 pickup -l -t unix -u -c
4 S postfix 1870 1860 0 80 0 - 6865 ep_pol 21:07 ? 00:00:00 qmgr -l -t unix -u
1 S root 1878 1 0 80 0 - 2671 poll_s 21:07 ? 00:00:00 /usr/sbin/pptpd
1 S root 1894 1 0 80 0 - 1110 poll_s 21:07 ? 00:00:00 /usr/sbin/xl2tpd
4 S root 1948 1 0 80 0 - 3955 n_tty_ 21:07 tty1 00:00:00 /sbin/getty -8 38400 tty1
4 S root 1961 1034 0 80 0 - 26409 poll_s 21:07 ? 00:00:00 sshd: root#pts/0
1 S root 1963 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 1965 2 0 80 0 - 0 kaudit 21:08 ? 00:00:00 [kauditd]
4 S root 2012 1961 0 80 0 - 5848 wait 21:08 pts/0 00:00:00 -bash
0 R root 2028 2012 0 80 0 - 4612 - 21:08 pts/0 00:00:00 ps -elf
The processes list after mysql service stopped.
root#mercury:~# service mysql stop
Shutting down MySQL.. SUCCESS!
root#mercury:~# ps -elf
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
4 S root 1 0 0 80 0 - 8348 poll_s 21:07 ? 00:00:00 /sbin/init
1 S root 2 0 0 80 0 - 0 kthrea 21:07 ? 00:00:00 [kthreadd]
1 S root 3 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/0]
1 S root 5 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/0:0H]
1 S root 6 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:0]
1 S root 7 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_sched]
1 S root 8 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/0]
1 S root 9 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/1]
1 S root 10 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/2]
1 S root 11 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/3]
1 S root 12 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/4]
1 S root 13 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/5]
1 S root 14 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/6]
1 S root 15 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuos/7]
1 S root 16 2 0 80 0 - 0 rcu_gp 21:07 ? 00:00:00 [rcu_bh]
1 S root 17 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/0]
1 S root 18 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/1]
1 S root 19 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/2]
1 S root 20 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/3]
1 S root 21 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/4]
1 S root 22 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/5]
1 S root 23 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/6]
1 S root 24 2 0 80 0 - 0 rcu_no 21:07 ? 00:00:00 [rcuob/7]
1 S root 25 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/0]
5 S root 26 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/0]
5 S root 27 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/1]
1 S root 28 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/1]
1 S root 29 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/1]
1 S root 30 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:0]
1 S root 31 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/1:0H]
5 S root 32 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/2]
1 S root 33 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/2]
1 S root 34 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/2]
1 S root 35 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:0]
1 S root 36 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/2:0H]
5 S root 37 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/3]
1 S root 38 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/3]
1 S root 39 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/3]
1 S root 40 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:0]
1 S root 41 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/3:0H]
5 S root 42 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/4]
1 S root 43 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/4]
1 S root 44 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/4]
1 S root 45 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:0]
1 S root 46 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/4:0H]
5 S root 47 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/5]
1 S root 48 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/5]
1 S root 49 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/5]
1 S root 50 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:0]
1 S root 51 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/5:0H]
5 S root 52 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/6]
1 S root 53 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/6]
1 S root 54 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/6]
1 S root 55 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:0]
1 S root 56 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/6:0H]
5 S root 57 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [watchdog/7]
1 S root 58 2 0 -40 - - 0 smpboo 21:07 ? 00:00:00 [migration/7]
1 S root 59 2 0 80 0 - 0 smpboo 21:07 ? 00:00:00 [ksoftirqd/7]
1 S root 60 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:0]
1 S root 61 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/7:0H]
1 S root 62 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [khelper]
5 S root 63 2 0 80 0 - 0 devtmp 21:07 ? 00:00:00 [kdevtmpfs]
1 S root 64 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [netns]
1 S root 65 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [writeback]
1 S root 66 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kintegrityd]
1 S root 67 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 68 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:0]
1 S root 69 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kblockd]
1 S root 70 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ata_sff]
1 S root 71 2 0 80 0 - 0 hub_th 21:07 ? 00:00:00 [khubd]
1 S root 72 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [md]
1 S root 73 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [devfreq_wq]
1 S root 74 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/2:1]
1 S root 79 2 0 80 0 - 0 watchd 21:07 ? 00:00:00 [khungtaskd]
1 S root 80 2 0 80 0 - 0 kswapd 21:07 ? 00:00:00 [kswapd0]
1 S root 81 2 0 85 5 - 0 ksm_sc 21:07 ? 00:00:00 [ksmd]
1 S root 82 2 0 99 19 - 0 khugep 21:07 ? 00:00:00 [khugepaged]
1 S root 83 2 0 80 0 - 0 fsnoti 21:07 ? 00:00:00 [fsnotify_mark]
1 S root 84 2 0 80 0 - 0 ecrypt 21:07 ? 00:00:00 [ecryptfs-kthrea]
1 S root 85 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [crypto]
1 S root 97 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kthrotld]
1 S root 98 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/6:1]
1 S root 99 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:1]
1 S root 118 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [deferwq]
1 S root 119 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [charger_manager]
1 S root 128 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/5:1]
1 S root 179 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [kpsmoused]
1 S root 180 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/0:2]
1 S root 181 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/1:1]
1 S root 182 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_0]
1 S root 183 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_1]
1 S root 184 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_2]
1 S root 185 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_3]
1 S root 186 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_4]
1 S root 187 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_5]
1 S root 194 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_6]
1 S root 195 2 0 80 0 - 0 scsi_e 21:07 ? 00:00:00 [scsi_eh_7]
1 S root 197 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/u16:9]
1 S root 198 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/3:1]
1 S root 199 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/7:1]
1 S root 206 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [bioset]
1 S root 214 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [kworker/4:1]
1 S root 215 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-worker-1]
1 S root 216 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-genwork-1]
1 S root 217 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-submit-1]
1 S root 218 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delalloc-]
1 S root 219 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-fixup-1]
1 S root 220 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-1]
1 S root 221 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 222 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-rmw-1]
1 S root 223 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-rai]
1 S root 224 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-met]
1 S root 226 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-freespace]
1 S root 227 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-delayed-m]
1 S root 228 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-cache-1]
1 S root 229 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-readahead]
1 S root 230 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-flush_del]
1 S root 231 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-qgroup-re]
1 S root 232 2 0 80 0 - 0 cleane 21:07 ? 00:00:00 [btrfs-cleaner]
1 S root 233 2 0 80 0 - 0 transa 21:07 ? 00:00:00 [btrfs-transacti]
1 S root 402 2 0 60 -20 - 0 worker 21:07 ? 00:00:00 [kworker/u17:1]
1 S root 437 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda1-8]
1 S root 438 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 442 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda5-8]
1 S root 443 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 447 2 0 80 0 - 0 kjourn 21:07 ? 00:00:00 [jbd2/sda6-8]
1 S root 448 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [ext4-rsv-conver]
1 S root 469 1 0 80 0 - 5001 poll_s 21:07 ? 00:00:00 upstart-udev-bridge --daemon
5 S root 478 1 0 80 0 - 12888 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-udevd --daemon
5 S message+ 488 1 0 80 0 - 9810 ep_pol 21:07 ? 00:00:00 dbus-daemon --system --fork
1 S root 556 2 0 9 - - 0 irq_th 21:07 ? 00:00:00 [irq/61-mei_me]
4 S root 557 1 0 80 0 - 10863 ep_pol 21:07 ? 00:00:00 /lib/systemd/systemd-logind
5 S syslog 599 1 0 80 0 - 63962 poll_s 21:07 ? 00:00:00 rsyslogd
1 S root 624 2 0 60 -20 - 0 rescue 21:07 ? 00:00:00 [led_workqueue]
1 S root 700 1 0 80 0 - 3986 poll_s 21:07 ? 00:00:00 upstart-file-bridge --daemon
1 S root 717 1 0 80 0 - 3815 poll_s 21:07 ? 00:00:00 upstart-socket-bridge --daemon
4 S root 1008 1 0 80 0 - 3955 n_tty_ 21:07 tty4 00:00:00 /sbin/getty -8 38400 tty4
4 S root 1015 1 0 80 0 - 3955 n_tty_ 21:07 tty2 00:00:00 /sbin/getty -8 38400 tty2
4 S root 1016 1 0 80 0 - 3955 n_tty_ 21:07 tty3 00:00:00 /sbin/getty -8 38400 tty3
1 S root 1033 1 0 80 0 - 1092 poll_s 21:07 ? 00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socke
4 S root 1034 1 0 80 0 - 15342 poll_s 21:07 ? 00:00:00 /usr/sbin/sshd -D
1 S root 1036 1 0 80 0 - 5914 hrtime 21:07 ? 00:00:00 cron
1 S daemon 1038 1 0 80 0 - 4785 hrtime 21:07 ? 00:00:00 atd
5 S root 1078 1 0 80 0 - 4816 hrtime 21:07 ? 00:00:00 /usr/sbin/irqbalance
1 S root 1278 1 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1279 1 0 80 0 - 1085 pipe_w 21:07 ? 00:00:00 logger -s -p daemon.error -t ipsec__plutorun
1 S root 1280 1278 0 80 0 - 1111 wait 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutorun --debug --uniqu
0 S root 1282 1278 0 80 0 - 1111 pipe_w 21:07 ? 00:00:00 /bin/sh /usr/lib/ipsec/_plutoload --wait no --pos
4 S root 1285 1280 0 80 0 - 23516 poll_s 21:07 ? 00:00:00 /usr/lib/ipsec/pluto --nofork --secretsfile /etc/
1 S root 1389 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 0
1 S root 1390 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 1
1 S root 1392 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 2
1 S root 1393 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 3
1 S root 1394 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 4
1 S root 1395 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 5
1 S root 1396 1285 0 90 10 - 23518 unix_s 21:07 ? 00:00:00 pluto helper # 6
0 S root 1532 1285 0 80 0 - 1589 poll_s 21:07 ? 00:00:00 _pluto_adns
5 S root 1744 1 0 80 0 - 6226 sigsus 21:07 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
5 S www-data 1746 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1747 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1748 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S www-data 1749 1744 0 80 0 - 6359 ep_pol 21:07 ? 00:00:00 nginx: worker process
5 S root 1761 1 0 80 0 - 108450 ep_pol 21:07 ? 00:00:00 php-fpm: master process (/usr/local/php/etc/php-f
5 S www-data 1762 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
5 S www-data 1763 1761 0 80 0 - 108450 skb_re 21:07 ? 00:00:00 php-fpm: pool default
4 S root 1860 1 0 80 0 - 6336 ep_pol 21:07 ? 00:00:00 /usr/lib/postfix/master
4 S postfix 1869 1860 0 80 0 - 6852 ep_pol 21:07 ? 00:00:00 pickup -l -t unix -u -c
4 S postfix 1870 1860 0 80 0 - 6865 ep_pol 21:07 ? 00:00:00 qmgr -l -t unix -u
1 S root 1878 1 0 80 0 - 2671 poll_s 21:07 ? 00:00:00 /usr/sbin/pptpd
1 S root 1894 1 0 80 0 - 1110 poll_s 21:07 ? 00:00:00 /usr/sbin/xl2tpd
4 S root 1948 1 0 80 0 - 3955 n_tty_ 21:07 tty1 00:00:00 /sbin/getty -8 38400 tty1
4 S root 1961 1034 0 80 0 - 26409 - 21:07 ? 00:00:00 sshd: root#pts/0
1 S root 1963 2 0 80 0 - 0 worker 21:07 ? 00:00:00 [btrfs-endio-wri]
1 S root 1965 2 0 80 0 - 0 kaudit 21:08 ? 00:00:00 [kauditd]
4 S root 2012 1961 0 80 0 - 5863 wait 21:08 pts/0 00:00:00 -bash
1 S root 2035 2 0 80 0 - 0 worker 21:13 ? 00:00:00 [btrfs-endio-2]
0 R root 2064 2012 0 80 0 - 4612 - 21:14 pts/0 00:00:00 ps -elf