记录启动在centos下启动mysql失败
0.查看mysql是否安装成功
[root@VM_0_6_centos ~]
mysql:
/usr/bin/mysql
/usr/lib64/mysql
/usr/share/man/man1/mysql
.1.gz
1.用命令启动mysql服务
[root@VM_0_6_centos ~]
Redirecting to
/bin/systemctl
start mysqld.service
Job
for
mysqld.service failed because the control process exited with error code. See
"systemctl status mysqld.service"
and
"journalctl -xe"
for
details.
2.使用命令systemctl status mysqld.service查看
[root@VM_0_6_centos ~]
● mysqld.service - MySQL Server
Loaded: loaded (
/usr/lib/systemd/system/mysqld
.service; bad; vendor preset: disabled)
Active: failed (Result:
exit
-code) since Sat 2019-06-15 18:06:16 CST; 6min ago
Docs:
man
:mysqld(8)
http:
//dev
.mysql.com
/doc/refman/en/using-systemd
.html
Process: 1804 ExecStart=
/usr/sbin/mysqld
$MYSQLD_OPTS (code=exited, status=1
/FAILURE
)
Process: 1781 ExecStartPre=
/usr/bin/mysqld_pre_systemd
(code=exited, status=0
/SUCCESS
)
Main PID: 1804 (code=exited, status=1
/FAILURE
)
Status:
"SERVER_BOOTING"
Error: 2 (No such
file
or directory)
Jun 15 18:06:15 VM_0_6_centos systemd[1]: Starting MySQL Server...
Jun 15 18:06:16 VM_0_6_centos systemd[1]: mysqld.service: main process exited, code=exited, status=1
/FAILURE
Jun 15 18:06:16 VM_0_6_centos systemd[1]: Failed to start MySQL Server.
Jun 15 18:06:16 VM_0_6_centos systemd[1]: Unit mysqld.service entered failed state.
Jun 15 18:06:16 VM_0_6_centos systemd[1]: mysqld.service failed.
3.使用journalctl -xe命令查看
[root@VM_0_6_centos ~]
-- Defined-By: systemd
-- Support: http:
//lists
.freedesktop.org
/mailman/listinfo/systemd-devel
--
-- Unit session-17458.scope has finished starting up.
--
-- The start-up result is
done
.
Jun 15 18:13:01 VM_0_6_centos CROND[2392]: (root) CMD (
/usr/local/qcloud/stargate/admin/start
.sh >
/dev/null
2>&1 &)
Jun 15 18:13:38 VM_0_6_centos sshd[2445]: Invalid user backup from 62.234.135.67 port 32948
Jun 15 18:13:38 VM_0_6_centos sshd[2445]: input_userauth_request: invalid user backup [preauth]
Jun 15 18:13:38 VM_0_6_centos sshd[2445]: pam_unix(sshd:auth): check pass; user unknown
Jun 15 18:13:38 VM_0_6_centos sshd[2445]: pam_unix(sshd:auth): authentication failure;
logname
= uid=0 euid=0
tty
=
ssh
ruser= rhost=62.234.135.67
Jun 15 18:13:40 VM_0_6_centos sshd[2445]: Failed password
for
invalid user backup from 62.234.135.67 port 32948 ssh2
Jun 15 18:13:40 VM_0_6_centos sshd[2445]: Received disconnect from 62.234.135.67 port 32948:11: Bye Bye [preauth]
Jun 15 18:13:40 VM_0_6_centos sshd[2445]: Disconnected from 62.234.135.67 port 32948 [preauth]
Jun 15 18:14:01 VM_0_6_centos systemd[1]: Started Session 17459 of user root.
-- Subject: Unit session-17459.scope has finished start-up
-- Defined-By: systemd
-- Support: http:
//lists
.freedesktop.org
/mailman/listinfo/systemd-devel
--
-- Unit session-17459.scope has finished starting up.
--
-- The start-up result is
done
.
Jun 15 18:14:01 VM_0_6_centos CROND[2471]: (root) CMD (
/usr/local/qcloud/stargate/admin/start
.sh >
/dev/null
2>&1 &)
Jun 15 18:14:35 VM_0_6_centos sshd[2525]: Invalid user zhou from 62.234.135.67 port 46716
Jun 15 18:14:35 VM_0_6_centos sshd[2525]: input_userauth_request: invalid user zhou [preauth]
Jun 15 18:14:35 VM_0_6_centos sshd[2525]: pam_unix(sshd:auth): check pass; user unknown
Jun 15 18:14:35 VM_0_6_centos sshd[2525]: pam_unix(sshd:auth): authentication failure;
logname
= uid=0 euid=0
tty
=
ssh
ruser= rhost=62.234.135.67
Jun 15 18:14:37 VM_0_6_centos sshd[2525]: Failed password
for
invalid user zhou from 62.234.135.67 port 46716 ssh2
Jun 15 18:14:37 VM_0_6_centos sshd[2525]: Received disconnect from 62.234.135.67 port 46716:11: Bye Bye [preauth]
Jun 15 18:14:37 VM_0_6_centos sshd[2525]: Disconnected from 62.234.135.67 port 46716 [preauth]
到mysql的日志里看一下:
[root@VM_0_6_centos ~]
2019-06-18T08:17:25.891663Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory.
2019-06-18T08:17:25.994776Z 1 [ERROR] [MY-013090] [InnoDB] Unsupported redo log
format
(0). The redo log was created before MySQL 5.7.9
2019-06-18T08:17:25.994807Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2019-06-18T08:17:26.697893Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
2019-06-18T08:17:26.698203Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2019-06-18T08:17:26.698324Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-06-18T08:17:26.745756Z 0 [System] [MY-010910] [Server]
/usr/sbin/mysqld
: Shutdown complete (mysqld 8.0.16) MySQL Community Server - GPL.