mysql8安装失败

这是安装日志:

mysql8  | 2024-10-01T07:17:07.362117Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
mysql8  | 2024-10-01T07:17:07.362132Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.39) initializing of server in progress as process 78
mysql8  | 2024-10-01T07:17:07.363097Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
mysql8  | 2024-10-01T07:17:07.363594Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
mysql8  | 2024-10-01T07:17:07.363600Z 0 [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it.
mysql8  | 2024-10-01T07:17:07.363652Z 0 [ERROR] [MY-010119] [Server] Aborting
mysql8  | 2024-10-01T07:17:07.363806Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.39)  MySQL Community Server - GPL.

删除重装也是这个错误吗

问题已解决