错误代码如下:
```powershell
Nov 27 12:42:47 CentOS7Aron mysqld[6972]: 2020-11-27T04:42:47.350682Z 1 [ERROR] [MY-013168] [InnoDB] Cannot upgrade server earlier than 5.7 to 8.0
Nov 27 12:42:52 CentOS7Aron mysqld[6972]: 2020-11-27T04:42:52.352797Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
Nov 27 12:42:52 CentOS7Aron mysqld[6972]: 2020-11-27T04:42:52.354832Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
Nov 27 12:42:52 CentOS7Aron mysqld[6972]: 2020-11-27T04:42:52.357665Z 0 [ERROR] [MY-010119] [Server] Aborting
Nov 27 12:42:52 CentOS7Aron mysqld[6972]: 2020-11-27T04:42:52.358486Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.22) MySQL Commu
Nov 27 12:42:52 CentOS7Aron systemd[1]: mysqld.service: main process exited, code=exited, status=1/FAILURE
Nov 27 12:42:52 CentOS7Aron systemd[1]: Failed to start MySQL Server.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit mysqld.service has failed.
--
-- The result is failed.
Nov 27 12:42:52 CentOS7Aron systemd[1]: Unit mysqld.service entered failed state.
Nov 27 12:42:52 CentOS7Aron systemd[1]: mysqld.service failed.
Nov 27 12:42:52 CentOS7Aron polkitd[791]: Unregistered Authentication Agent for unix-process:6929:527047 (system bus name :1.196, object path /org/freedesktop/PolicyK
解决办法:
删除/var/lib/mysql
下的所有文件即可。