MySQLが起動しなくなりました。
ある日、MySQLが機能しなくなっていたのを確認した為に、./mysql stop →./mysql start
をしましたがエラーが発生して起動されず。
その時のエラーも今回と同じようなものだったと思います。
とりあえずアンインストールして再インストールを図るも同じエラーが、、
なんででしょうか、、、
mysql
1mysql.serviceJob for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
OS:Linux Mint 32bit
MySQL: mysql-server 5.7.18-0ubuntu0.16.04.1
やってみた事
テラテイルの過去の質問に同じトラブルがあり
そこの回答には
1.解消方法教えてくださいm(__)m
mysql.sockは自動で作成されるのでこちらを削除してください。
*pidファイルも作られてたら削除してください。
と書いてありました。
見てみたところ、mysql.sockもpidも生成されていないんです。←これは間違いでした。/var/lib/mysqlにちゃんとありました。→mysql.sockを消去。改めて./mysql start をするも同じエラーが発生
systemctl status mysql.service を実行していみる。
mysql
1/etc/init.d$ systemctl status mysql.service 2● mysql.service - MySQL Community Server 3 Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en 4 Active: activating (start-post) (Result: exit-code) since 土 2017-07-08 11:31 5 Process: 21779 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE) 6 Process: 21771 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi 7 Main PID: 21779 (code=exited, status=1/FAILURE); : 21780 (mysql-systemd 8 CGroup: /system.slice/mysql.service 9 └─control 10 ├─21780 /bin/bash /usr/share/mysql/mysql-systemd-start post 11 └─21880 sleep 1 12 13 7月 08 11:31:43 DOG2 systemd[1]: Starting MySQL Community Server... 14 7月 08 11:31:43 DOG2 systemd[1]: mysql.service: Main process exited, code=exite 15lines 1-13/13 (END)
mysql
1InnoDB: Progress in percent: 2017-07-07T22:36:22.397197Z 0 [ERROR] InnoDB: Trying to access page number 278272 in space 145, space name coreprotect/wgc_block, which is outside the tablespace bounds. Byte offset 0, len 16384, i/o type read. If you get this error at mysqld startup, please check that your my.cnf matches the ibdata files that you have in the MySQL server. 22017-07-07T22:36:22.397210Z 0 [ERROR] InnoDB: Server exits. 32017-07-07T22:36:52.597292Z 0 [Warning] Changed limits: max_open_files: 1024 (requested 5000) 42017-07-07T22:36:52.597384Z 0 [Warning] Changed limits: table_open_cache: 431 (requested 2000) 52017-07-07T22:36:52.798351Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 62017-07-07T22:36:52.801916Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.18-0ubuntu0.16.04.1) starting as process 7733 ... 72017-07-07T22:36:52.808342Z 0 [Note] InnoDB: PUNCH HOLE support available 82017-07-07T22:36:52.808408Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 92017-07-07T22:36:52.808420Z 0 [Note] InnoDB: Uses event mutexes 102017-07-07T22:36:52.808432Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 112017-07-07T22:36:52.808443Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.8 122017-07-07T22:36:52.808454Z 0 [Note] InnoDB: Using Linux native AIO 132017-07-07T22:36:52.808874Z 0 [Note] InnoDB: Number of pools: 1 142017-07-07T22:36:52.809016Z 0 [Note] InnoDB: Not using CPU crc32 instructions 152017-07-07T22:36:52.811104Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M 162017-07-07T22:36:52.827113Z 0 [Note] InnoDB: Completed initialization of buffer pool 172017-07-07T22:36:52.829523Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 182017-07-07T22:36:52.843674Z 0 [Note] InnoDB: Highest supported file format is Barracuda. 192017-07-07T22:36:52.845334Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 22488436582 202017-07-07T22:36:52.845444Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22488445105 212017-07-07T22:36:52.846946Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 22488445105 222017-07-07T22:36:52.848503Z 0 [Note] InnoDB: Database was not shutdown normally! 232017-07-07T22:36:52.848555Z 0 [Note] InnoDB: Starting crash recovery. 242017-07-07T22:36:52.848836Z 0 [Warning] InnoDB: Page 4 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=183176] 252017-07-07T22:36:52.848853Z 0 [Warning] InnoDB: Page 5 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=254575] 262017-07-07T22:36:52.848866Z 0 [Warning] InnoDB: Page 6 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=231687] 272017-07-07T22:36:52.849812Z 0 [Warning] InnoDB: Page 34 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=196927] 282017-07-07T22:36:52.849848Z 0 [Warning] InnoDB: Page 35 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=214280] 292017-07-07T22:36:52.849860Z 0 [Warning] InnoDB: Page 36 in the doublewrite buffer is not within space bounds: page [page id: space=145, page number=233064] 302017-07-07T22:36:52.903722Z 0 [Note] InnoDB: 1 transaction(s) which must be rolled back or cleaned up in total 34 row operations to undo 312017-07-07T22:36:52.903773Z 0 [Note] InnoDB: Trx id counter is 3117056 322017-07-07T22:36:52.903807Z 0 [Note] InnoDB: Starting an apply batch of log records to the database...

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/08 03:03
2017/07/08 03:09
2017/07/08 03:18
2017/07/08 03:19
2017/07/08 03:53
2017/07/08 04:36 編集
2017/07/08 09:12
2017/07/09 10:54