mysql啟動報錯
/usr/local/mysql/bin/mysqld_safe: line 183: 10859 Killed nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=/usr/local/mysql/data/mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 >
/usr/local/mysql/bin/mysqld_safe: line 183: 13277 Killed nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=/usr/local/mysql/data/mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 >
/usr/local/mysql/bin/mysqld_safe: line 183: 12060 Killed nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=/usr/local/mysql/data/mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 >
......
一直這樣,
修改my.cnf 沒有用。
重裝也沒有用。
uj5u.com熱心網友回復:
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &uj5u.com熱心網友回復:
謝謝你,不過好像沒有解決
成了 這樣
./bin/mysqld_safe: line 183: 953 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:05 mysqld_safe Number of processes running now: 0
190508 14:59:05 mysqld_safe mysqld restarted
./bin/mysqld_safe: line 183: 1307 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:11 mysqld_safe Number of processes running now: 0
190508 14:59:11 mysqld_safe mysqld restarted
uj5u.com熱心網友回復:
看看mysql.err這個檔案里面的報錯資訊
uj5u.com熱心網友回復:
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
謝謝你,不過好像沒有解決
成了 這樣
./bin/mysqld_safe: line 183: 953 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:05 mysqld_safe Number of processes running now: 0
190508 14:59:05 mysqld_safe mysqld restarted
./bin/mysqld_safe: line 183: 1307 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:11 mysqld_safe Number of processes running now: 0
190508 14:59:11 mysqld_safe mysqld restarted
看看mysql.err這個檔案里面的報錯資訊
2019-05-08 16:00:57 3791 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:00:57 3791 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:00:57 3791 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:00:57 3791 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:00:57 3791 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:00:57 3791 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:00:57 3791 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:00:57 3791 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:00:57 3791 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:00:57 3791 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:00:57 3791 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:00:57 3791 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:00:57 3791 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:00:57 3791 [Note] InnoDB: 5.6.44 started; log sequence number 1817039
2019-05-08 16:00:57 3791 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:00:57 3791 [Note] IPv6 is available.
2019-05-08 16:00:57 3791 [Note] - '::' resolves to '::';
2019-05-08 16:00:57 3791 [Note] Server socket created on IP: '::'.
2019-05-08 16:00:57 3791 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:00:57 3791 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
2019-05-08 16:01:01 4122 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:01:01 4122 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:01:01 4122 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:01:01 4122 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:01:01 4122 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:01:01 4122 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:01:01 4122 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:01:01 4122 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:01:01 4122 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:01:01 4122 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:01:01 4122 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:01:01 4122 [Note] InnoDB: The log sequence numbers 1817039 and 1817039 in ibdata files do not match the log sequence number 1817049 in the ib_logfiles!
2019-05-08 16:01:01 4122 [Note] InnoDB: Database was not shutdown normally!
2019-05-08 16:01:01 4122 [Note] InnoDB: Starting crash recovery.
2019-05-08 16:01:01 4122 [Note] InnoDB: Reading tablespace information from the .ibd files...
2019-05-08 16:01:01 4122 [Note] InnoDB: Restoring possible half-written data pages
2019-05-08 16:01:01 4122 [Note] InnoDB: from the doublewrite buffer...
2019-05-08 16:01:01 4122 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:01:01 4122 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:01:01 4122 [Note] InnoDB: 5.6.44 started; log sequence number 1817049
2019-05-08 16:01:01 4122 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:01:01 4122 [Note] IPv6 is available.
2019-05-08 16:01:01 4122 [Note] - '::' resolves to '::';
2019-05-08 16:01:01 4122 [Note] Server socket created on IP: '::'.
2019-05-08 16:01:01 4122 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:01:01 4122 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
......
我看不出什么
uj5u.com熱心網友回復:
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
謝謝你,不過好像沒有解決
成了 這樣
./bin/mysqld_safe: line 183: 953 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:05 mysqld_safe Number of processes running now: 0
190508 14:59:05 mysqld_safe mysqld restarted
./bin/mysqld_safe: line 183: 1307 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:11 mysqld_safe Number of processes running now: 0
190508 14:59:11 mysqld_safe mysqld restarted
看看mysql.err這個檔案里面的報錯資訊
2019-05-08 16:00:57 3791 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:00:57 3791 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:00:57 3791 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:00:57 3791 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:00:57 3791 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:00:57 3791 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:00:57 3791 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:00:57 3791 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:00:57 3791 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:00:57 3791 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:00:57 3791 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:00:57 3791 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:00:57 3791 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:00:57 3791 [Note] InnoDB: 5.6.44 started; log sequence number 1817039
2019-05-08 16:00:57 3791 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:00:57 3791 [Note] IPv6 is available.
2019-05-08 16:00:57 3791 [Note] - '::' resolves to '::';
2019-05-08 16:00:57 3791 [Note] Server socket created on IP: '::'.
2019-05-08 16:00:57 3791 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:00:57 3791 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
2019-05-08 16:01:01 4122 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:01:01 4122 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:01:01 4122 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:01:01 4122 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:01:01 4122 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:01:01 4122 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:01:01 4122 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:01:01 4122 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:01:01 4122 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:01:01 4122 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:01:01 4122 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:01:01 4122 [Note] InnoDB: The log sequence numbers 1817039 and 1817039 in ibdata files do not match the log sequence number 1817049 in the ib_logfiles!
2019-05-08 16:01:01 4122 [Note] InnoDB: Database was not shutdown normally!
2019-05-08 16:01:01 4122 [Note] InnoDB: Starting crash recovery.
2019-05-08 16:01:01 4122 [Note] InnoDB: Reading tablespace information from the .ibd files...
2019-05-08 16:01:01 4122 [Note] InnoDB: Restoring possible half-written data pages
2019-05-08 16:01:01 4122 [Note] InnoDB: from the doublewrite buffer...
2019-05-08 16:01:01 4122 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:01:01 4122 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:01:01 4122 [Note] InnoDB: 5.6.44 started; log sequence number 1817049
2019-05-08 16:01:01 4122 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:01:01 4122 [Note] IPv6 is available.
2019-05-08 16:01:01 4122 [Note] - '::' resolves to '::';
2019-05-08 16:01:01 4122 [Note] Server socket created on IP: '::'.
2019-05-08 16:01:01 4122 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:01:01 4122 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
......
我看不出什么
看日志應該是MySQL實體開起來了,你看一下有沒有MySQL行程
ps -ef|grep mysql
uj5u.com熱心網友回復:
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
謝謝你,不過好像沒有解決
成了 這樣
./bin/mysqld_safe: line 183: 953 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:05 mysqld_safe Number of processes running now: 0
190508 14:59:05 mysqld_safe mysqld restarted
./bin/mysqld_safe: line 183: 1307 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:11 mysqld_safe Number of processes running now: 0
190508 14:59:11 mysqld_safe mysqld restarted
看看mysql.err這個檔案里面的報錯資訊
2019-05-08 16:00:57 3791 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:00:57 3791 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:00:57 3791 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:00:57 3791 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:00:57 3791 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:00:57 3791 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:00:57 3791 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:00:57 3791 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:00:57 3791 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:00:57 3791 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:00:57 3791 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:00:57 3791 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:00:57 3791 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:00:57 3791 [Note] InnoDB: 5.6.44 started; log sequence number 1817039
2019-05-08 16:00:57 3791 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:00:57 3791 [Note] IPv6 is available.
2019-05-08 16:00:57 3791 [Note] - '::' resolves to '::';
2019-05-08 16:00:57 3791 [Note] Server socket created on IP: '::'.
2019-05-08 16:00:57 3791 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:00:57 3791 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
2019-05-08 16:01:01 4122 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:01:01 4122 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:01:01 4122 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:01:01 4122 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:01:01 4122 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:01:01 4122 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:01:01 4122 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:01:01 4122 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:01:01 4122 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:01:01 4122 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:01:01 4122 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:01:01 4122 [Note] InnoDB: The log sequence numbers 1817039 and 1817039 in ibdata files do not match the log sequence number 1817049 in the ib_logfiles!
2019-05-08 16:01:01 4122 [Note] InnoDB: Database was not shutdown normally!
2019-05-08 16:01:01 4122 [Note] InnoDB: Starting crash recovery.
2019-05-08 16:01:01 4122 [Note] InnoDB: Reading tablespace information from the .ibd files...
2019-05-08 16:01:01 4122 [Note] InnoDB: Restoring possible half-written data pages
2019-05-08 16:01:01 4122 [Note] InnoDB: from the doublewrite buffer...
2019-05-08 16:01:01 4122 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:01:01 4122 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:01:01 4122 [Note] InnoDB: 5.6.44 started; log sequence number 1817049
2019-05-08 16:01:01 4122 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:01:01 4122 [Note] IPv6 is available.
2019-05-08 16:01:01 4122 [Note] - '::' resolves to '::';
2019-05-08 16:01:01 4122 [Note] Server socket created on IP: '::'.
2019-05-08 16:01:01 4122 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:01:01 4122 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
......
我看不出什么
看日志應該是MySQL實體開起來了,你看一下有沒有MySQL行程
ps -ef|grep mysql
mysql 是啟動了的,但是過一段時間(一分鐘左右) 會把這個行程killed, 好像自動又啟動了..回圈往復
uj5u.com熱心網友回復:
bin/mysqld_safe --defaults-file=/etc/my.cnf --user=mysql &
謝謝你,不過好像沒有解決
成了 這樣
./bin/mysqld_safe: line 183: 953 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:05 mysqld_safe Number of processes running now: 0
190508 14:59:05 mysqld_safe mysqld restarted
./bin/mysqld_safe: line 183: 1307 Killed nohup /usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=mysql.err --pid-file=mysql.pid < /dev/null > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1 > /dev/null 2>&1
190508 14:59:11 mysqld_safe Number of processes running now: 0
190508 14:59:11 mysqld_safe mysqld restarted
看看mysql.err這個檔案里面的報錯資訊
2019-05-08 16:00:57 3791 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:00:57 3791 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:00:57 3791 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:00:57 3791 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:00:57 3791 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:00:57 3791 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:00:57 3791 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:00:57 3791 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:00:57 3791 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:00:57 3791 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:00:57 3791 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:00:57 3791 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:00:57 3791 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:00:57 3791 [Note] InnoDB: 5.6.44 started; log sequence number 1817039
2019-05-08 16:00:57 3791 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:00:57 3791 [Note] IPv6 is available.
2019-05-08 16:00:57 3791 [Note] - '::' resolves to '::';
2019-05-08 16:00:57 3791 [Note] Server socket created on IP: '::'.
2019-05-08 16:00:57 3791 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:00:57 3791 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
2019-05-08 16:01:01 4122 [Note] Plugin 'FEDERATED' is disabled.
2019-05-08 16:01:01 4122 [Note] InnoDB: Using atomics to ref count buffer pool pages
2019-05-08 16:01:01 4122 [Note] InnoDB: The InnoDB memory heap is disabled
2019-05-08 16:01:01 4122 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-05-08 16:01:01 4122 [Note] InnoDB: Memory barrier is not used
2019-05-08 16:01:01 4122 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-05-08 16:01:01 4122 [Note] InnoDB: Using Linux native AIO
2019-05-08 16:01:01 4122 [Note] InnoDB: Using CPU crc32 instructions
2019-05-08 16:01:01 4122 [Note] InnoDB: Initializing buffer pool, size = 56.0M
2019-05-08 16:01:01 4122 [Note] InnoDB: Completed initialization of buffer pool
2019-05-08 16:01:01 4122 [Note] InnoDB: Highest supported file format is Barracuda.
2019-05-08 16:01:01 4122 [Note] InnoDB: The log sequence numbers 1817039 and 1817039 in ibdata files do not match the log sequence number 1817049 in the ib_logfiles!
2019-05-08 16:01:01 4122 [Note] InnoDB: Database was not shutdown normally!
2019-05-08 16:01:01 4122 [Note] InnoDB: Starting crash recovery.
2019-05-08 16:01:01 4122 [Note] InnoDB: Reading tablespace information from the .ibd files...
2019-05-08 16:01:01 4122 [Note] InnoDB: Restoring possible half-written data pages
2019-05-08 16:01:01 4122 [Note] InnoDB: from the doublewrite buffer...
2019-05-08 16:01:01 4122 [Note] InnoDB: 128 rollback segment(s) are active.
2019-05-08 16:01:01 4122 [Note] InnoDB: Waiting for purge to start
2019-05-08 16:01:01 4122 [Note] InnoDB: 5.6.44 started; log sequence number 1817049
2019-05-08 16:01:01 4122 [Note] Server hostname (bind-address): '*'; port: 3306
2019-05-08 16:01:01 4122 [Note] IPv6 is available.
2019-05-08 16:01:01 4122 [Note] - '::' resolves to '::';
2019-05-08 16:01:01 4122 [Note] Server socket created on IP: '::'.
2019-05-08 16:01:01 4122 [Note] Event Scheduler: Loaded 0 events
2019-05-08 16:01:01 4122 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.44' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
......
我看不出什么
看日志應該是MySQL實體開起來了,你看一下有沒有MySQL行程
ps -ef|grep mysql
mysql 是啟動了的,但是過一段時間(一分鐘左右) 會把這個行程killed, 好像自動又啟動了..回圈往復
也許是你my.cnf里的一些引數配置不合適,例如一些涉及記憶體分配的引數,你檢查看看;
先把不是必要的,指定數值的引數去掉,再重啟試試
uj5u.com熱心網友回復:
mysql 是啟動了的,但是過一段時間(一分鐘左右) 會把這個行程killed, 好像自動又啟動了..回圈往復
也許是你my.cnf里的一些引數配置不合適,例如一些涉及記憶體分配的引數,你檢查看看;
先把不是必要的,指定數值的引數去掉,再重啟試試
好的 多謝
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/62387.html
標籤:MySQL
