MySQL CentOS 7에서 Mariadb 서비스 시작 실패
페이지 정보
본문
mysql(mariadb)이 갑작스레 작동하지 않을때 (작동오류/서비스오류/서비스실패)
[root@localhost mysql]# systemctl start mysqld
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
여기서 중요한 건 systemctl status mariadb.service 이 메세지 이다.
아래와 같이 위에 명령어를 입력 하면 아래처럼 현재 mariadb상태가 나온다.
[root@localhost mysql]# systemctl status mysqld
● mariadb.service - MariaDB 10.1.37 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Thu 2018-11-22 04:58:17 KST; 1min 25s ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 9264 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 27475 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 27430 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 27428 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 27475 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] InnoDB: Cannot...pool
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Plugin 'InnoDB...ror.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Plugin 'InnoDB...led.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [Note] Plugin 'FEEDBAC...led.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Unknown/unsupp...noDB
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Aborting
Nov 22 04:58:17 localhost systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE
Nov 22 04:58:17 localhost systemd[1]: Failed to start MariaDB 10.1.37 database server.
Nov 22 04:58:17 localhost systemd[1]: Unit mariadb.service entered failed state.
Nov 22 04:58:17 localhost systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost mysql]# find / -name ib_logfile* -print
/root/DB-back/mysql/ib_logfile0
/root/DB-back/mysql/ib_logfile1
/var/lib/mysql/ib_logfile0
/var/lib/mysql/ib_logfile1
[root@localhost mysql]# cd /var/lib/mysql/
[root@localhost mysql]# ls -al
total 110700
drwxr-xr-x 6 mysql mysql 4096 Nov 22 05:16 .
drwxr-xr-x 33 root root 4096 Nov 15 17:47 ..
-rw-rw---- 1 mysql mysql 16384 Nov 22 05:16 aria_log.00000001
-rw-rw---- 1 mysql mysql 52 Nov 22 05:16 aria_log_control
-rw-rw---- 1 mysql mysql 12582912 Nov 21 11:16 ibdata1
-rw-rw---- 1 mysql mysql 50331648 Nov 21 11:16 ib_logfile0
-rw-rw---- 1 mysql mysql 50331648 Nov 15 23:59 ib_logfile1
-rw-rw---- 1 mysql mysql 0 Nov 15 23:59 multi-master.info
drwx--x--x 2 mysql mysql 4096 Nov 16 00:03 mysql
srwxrwxrwx 1 mysql mysql 0 Nov 16 00:02 mysql.sock
drwx------ 2 mysql mysql 4096 Nov 15 23:59 performance_schema
-rw-rw---- 1 mysql mysql 24576 Nov 16 00:02 tc.log
-rw-rw---- 1 mysql mysql 5 Nov 16 00:02 happyjung.pid
-rw-rw---- 1 mysql mysql 696 Nov 22 05:16 happyjung-slow.log
의 파일중에서 아래 3개의 파일을 _back 폴더를 만들고 이동합니다.
삭제하라고는 하지만, 혹시 모르니까.....
ibdata1
ib_logfile0
ib_logfile1
[root@localhost mysql]# mkdir _back
[root@localhost mysql]# mv ib* _back/
[root@localhost mysql]# systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
이렇게 하면 해결이 된다고 하는데 안되네요.
기록차원에서 흔적을 남깁니다.
참고자료
https://idchowto.com/?p=11107
http://happygrammer.tistory.com/111
[root@localhost mysql]# systemctl start mysqld
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
여기서 중요한 건 systemctl status mariadb.service 이 메세지 이다.
아래와 같이 위에 명령어를 입력 하면 아래처럼 현재 mariadb상태가 나온다.
[root@localhost mysql]# systemctl status mysqld
● mariadb.service - MariaDB 10.1.37 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Thu 2018-11-22 04:58:17 KST; 1min 25s ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 9264 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 27475 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
Process: 27430 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 27428 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Main PID: 27475 (code=exited, status=1/FAILURE)
Status: "MariaDB server is down"
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] InnoDB: Cannot...pool
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Plugin 'InnoDB...ror.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Plugin 'InnoDB...led.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [Note] Plugin 'FEEDBAC...led.
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Unknown/unsupp...noDB
Nov 22 04:58:17 localhost mysqld[27475]: 2018-11-22 4:58:17 140585499293952 [ERROR] Aborting
Nov 22 04:58:17 localhost systemd[1]: mariadb.service: main process exited, code=exited, status=1/FAILURE
Nov 22 04:58:17 localhost systemd[1]: Failed to start MariaDB 10.1.37 database server.
Nov 22 04:58:17 localhost systemd[1]: Unit mariadb.service entered failed state.
Nov 22 04:58:17 localhost systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost mysql]# find / -name ib_logfile* -print
/root/DB-back/mysql/ib_logfile0
/root/DB-back/mysql/ib_logfile1
/var/lib/mysql/ib_logfile0
/var/lib/mysql/ib_logfile1
[root@localhost mysql]# cd /var/lib/mysql/
[root@localhost mysql]# ls -al
total 110700
drwxr-xr-x 6 mysql mysql 4096 Nov 22 05:16 .
drwxr-xr-x 33 root root 4096 Nov 15 17:47 ..
-rw-rw---- 1 mysql mysql 16384 Nov 22 05:16 aria_log.00000001
-rw-rw---- 1 mysql mysql 52 Nov 22 05:16 aria_log_control
-rw-rw---- 1 mysql mysql 12582912 Nov 21 11:16 ibdata1
-rw-rw---- 1 mysql mysql 50331648 Nov 21 11:16 ib_logfile0
-rw-rw---- 1 mysql mysql 50331648 Nov 15 23:59 ib_logfile1
-rw-rw---- 1 mysql mysql 0 Nov 15 23:59 multi-master.info
drwx--x--x 2 mysql mysql 4096 Nov 16 00:03 mysql
srwxrwxrwx 1 mysql mysql 0 Nov 16 00:02 mysql.sock
drwx------ 2 mysql mysql 4096 Nov 15 23:59 performance_schema
-rw-rw---- 1 mysql mysql 24576 Nov 16 00:02 tc.log
-rw-rw---- 1 mysql mysql 5 Nov 16 00:02 happyjung.pid
-rw-rw---- 1 mysql mysql 696 Nov 22 05:16 happyjung-slow.log
의 파일중에서 아래 3개의 파일을 _back 폴더를 만들고 이동합니다.
삭제하라고는 하지만, 혹시 모르니까.....
ibdata1
ib_logfile0
ib_logfile1
[root@localhost mysql]# mkdir _back
[root@localhost mysql]# mv ib* _back/
[root@localhost mysql]# systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
이렇게 하면 해결이 된다고 하는데 안되네요.
기록차원에서 흔적을 남깁니다.
참고자료
https://idchowto.com/?p=11107
http://happygrammer.tistory.com/111
댓글목록
등록된 댓글이 없습니다.