背景是:安装mysql,之前rpm过mysql,然后卸载了
2022-01-23T04:49:31.611319Z 0 [Note] Binlog end
2022-01-23T04:49:31.611344Z 0 [Note] Shutting down plugin ‘ngram’
2022-01-23T04:49:31.611347Z 0 [Note] Shutting down plugin ‘partition’
2022-01-23T04:49:31.611349Z 0 [Note] Shutting down plugin ‘BLACKHOLE’
2022-01-23T04:49:31.611351Z 0 [Note] Shutting down plugin ‘ARCHIVE’
2022-01-23T04:49:31.611352Z 0 [Note] Shutting down plugin ‘PERFORMANCE_SCHEMA’
2022-01-23T04:49:31.611385Z 0 [Note] Shutting down plugin ‘MRG_MYISAM’
2022-01-23T04:49:31.611388Z 0 [Note] Shutting down plugin ‘MyISAM’
2022-01-23T04:49:31.611393Z 0 [Note] Shutting down plugin ‘INNODB_SYS_VIRTUAL’
2022-01-23T04:49:31.611394Z 0 [Note] Shutting down plugin ‘INNODB_SYS_DATAFILES’
2022-01-23T04:49:31.611395Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLESPACES’
2022-01-23T04:49:31.611399Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FOREIGN_COLS’
2022-01-23T04:49:31.611401Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FOREIGN’
2022-01-23T04:49:31.611402Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FIELDS’
2022-01-23T04:49:31.611403Z 0 [Note] Shutting down plugin ‘INNODB_SYS_COLUMNS’
2022-01-23T04:49:31.611405Z 0 [Note] Shutting down plugin ‘INNODB_SYS_INDEXES’
2022-01-23T04:49:31.611406Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLESTATS’
2022-01-23T04:49:31.611407Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLES’
2022-01-23T04:49:31.611408Z 0 [Note] Shutting down plugin ‘INNODB_FT_INDEX_TABLE’
2022-01-23T04:49:31.611410Z 0 [Note] Shutting down plugin ‘INNODB_FT_INDEX_CACHE’
2022-01-23T04:49:31.611411Z 0 [Note] Shutting down plugin ‘INNODB_FT_CONFIG’
2022-01-23T04:49:31.611412Z 0 [Note] Shutting down plugin ‘INNODB_FT_BEING_DELETED’
2022-01-23T04:49:31.611413Z 0 [Note] Shutting down plugin ‘INNODB_FT_DELETED’
2022-01-23T04:49:31.611415Z 0 [Note] Shutting down plugin ‘INNODB_FT_DEFAULT_STOPWORD’
2022-01-23T04:49:31.611416Z 0 [Note] Shutting down plugin ‘INNODB_METRICS’
2022-01-23T04:49:31.611417Z 0 [Note] Shutting down plugin ‘INNODB_TEMP_TABLE_INFO’
2022-01-23T04:49:31.611419Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_POOL_STATS’
2022-01-23T04:49:31.611420Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_PAGE_LRU’
2022-01-23T04:49:31.611421Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_PAGE’
2022-01-23T04:49:31.611423Z 0 [Note] Shutting down plugin ‘INNODB_CMP_PER_INDEX_RESET’
2022-01-23T04:49:31.611425Z 0 [Note] Shutting down plugin ‘INNODB_CMP_PER_INDEX’
2022-01-23T04:49:31.611757Z 0 [Note] Shutting down plugin ‘INNODB_CMPMEM_RESET’
2022-01-23T04:49:31.612367Z 0 [Note] Shutting down plugin ‘INNODB_CMPMEM’
2022-01-23T04:49:31.612395Z 0 [Note] Shutting down plugin ‘INNODB_CMP_RESET’
2022-01-23T04:49:31.612502Z 0 [Note] Shutting down plugin ‘INNODB_CMP’
2022-01-23T04:49:31.612583Z 0 [Note] Shutting down plugin ‘INNODB_LOCK_WAITS’
2022-01-23T04:49:31.612601Z 0 [Note] Shutting down plugin ‘INNODB_LOCKS’
2022-01-23T04:49:31.612757Z 0 [Note] Shutting down plugin ‘INNODB_TRX’
2022-01-23T04:49:31.612762Z 0 [Note] Shutting down plugin ‘InnoDB’
2022-01-23T04:49:31.612789Z 0 [Note] InnoDB: FTS optimize thread exiting.
2022-01-23T04:49:31.612856Z 0 [Note] InnoDB: Starting shutdown…
2022-01-23T04:49:31.713957Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2022-01-23T04:49:31.714330Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 220123 12:49:31
2022-01-23T04:49:33.228809Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1210075
2022-01-23T04:49:33.229947Z 0 [Note] InnoDB: Removed temporary tablespace data file: “ibtmp1”
2022-01-23T04:49:33.229971Z 0 [Note] Shutting down plugin ‘MEMORY’
2022-01-23T04:49:33.229978Z 0 [Note] Shutting down plugin ‘CSV’
2022-01-23T04:49:33.229980Z 0 [Note] Shutting down plugin ‘sha256_password’
2022-01-23T04:49:33.229982Z 0 [Note] Shutting down plugin ‘mysql_native_password’
2022-01-23T04:49:33.230060Z 0 [Note] Shutting down plugin ‘binlog’
2022-01-23T04:49:33.230213Z 0 [Note] /usr/sbin/mysqld: Shutdown complete
2022-01-23T04:49:33.768753Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2022-01-23T04:49:33.769582Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.35) starting as process 31607 …
2022-01-23T04:49:33.771828Z 0 [Note] InnoDB: PUNCH HOLE support available
2022-01-23T04:49:33.771857Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2022-01-23T04:49:33.771861Z 0 [Note] InnoDB: Uses event mutexes
2022-01-23T04:49:33.771863Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2022-01-23T04:49:33.771864Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-01-23T04:49:33.771866Z 0 [Note] InnoDB: Using Linux native AIO
2022-01-23T04:49:33.771999Z 0 [Note] InnoDB: Number of pools: 1
2022-01-23T04:49:33.772054Z 0 [Note] InnoDB: Using CPU crc32 instructions
2022-01-23T04:49:33.772905Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-01-23T04:49:33.776795Z 0 [Note] InnoDB: Completed initialization of buffer pool
2022-01-23T04:49:33.777815Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2022-01-23T04:49:33.788785Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2022-01-23T04:49:33.792154Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-01-23T04:49:33.792228Z 0 [Note] InnoDB: Setting file ‘./ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2022-01-23T04:49:33.797888Z 0 [Note] InnoDB: File ‘./ibtmp1’ size is now 12 MB.
2022-01-23T04:49:33.798255Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2022-01-23T04:49:33.798273Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2022-01-23T04:49:33.798665Z 0 [Note] InnoDB: 5.7.35 started; log sequence number 1210075
2022-01-23T04:49:33.799704Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2022-01-23T04:49:33.799768Z 0 [Note] Plugin ‘FEDERATED’ is disabled.
mysqld: Table ‘mysql.plugin’ doesn’t exist2022-01-23T04:49:33.800054Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220123 12:49:33
2022-01-23T04:49:33.800085Z 0 [ERROR] Can’t open the mysql.plugin table. Please run mysql_upgrade to create it.
2022-01-23T04:49:33.800433Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed’ cannot be opened.
2022-01-23T04:49:33.801172Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2022-01-23T04:49:33.801196Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2022-01-23T04:49:33.801201Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
2022-01-23T04:49:33.801203Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
2022-01-23T04:49:33.801664Z 0 [Warning] CA certificate ca.pem is self signed.
2022-01-23T04:49:33.801706Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2022-01-23T04:49:33.802104Z 0 [Note] Server hostname (bind-address): ‘*’; port: 3306
2022-01-23T04:49:33.802153Z 0 [Note] IPv6 is available.
2022-01-23T04:49:33.802161Z 0 [Note] - ‘::’ resolves to ‘::’;
2022-01-23T04:49:33.802172Z 0 [Note] Server socket created on IP: ‘::’.
2022-01-23T04:49:33.802685Z 0 [Warning] Failed to open optimizer cost constant tables
2022-01-23T04:49:33.802757Z 0 [ERROR] Fatal error: Can’t open and lock privilege tables: Table ‘mysql.user’ doesn’t exist
2022-01-23T04:49:33.802777Z 0 [ERROR] Fatal error: Failed to initialize ACL/grant/time zones structures or failed to remove temporary table files.
2022-01-23T04:49:33.802798Z 0 [ERROR] Aborting
https://blog.csdn.net/weixin_42456466/article/details/82658792 参考这个网址