话题 首页 > Linux 教程微课讨论区> 小题讨论区> 详情

安装mysql初始化失败,请问怎么解决?

精华
timyW3c 2020-08-18 10:56:57 浏览(2122) 回复(0) 赞(0)
不能初始化成功 ``` [root@timyCentOS7 bin]# ./mysqld --initialize --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql 2020-08-18 10:54:11 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2020-08-18 10:54:11 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled 2020-08-18 10:54:11 0 [Note] ./mysqld (mysqld 5.6.46) starting as process 3697 ... 2020-08-18 10:54:11 3697 [Note] Plugin 'FEDERATED' is disabled. ./mysqld: Table 'mysql.plugin' doesn't exist 2020-08-18 10:54:11 3697 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 2020-08-18 10:54:11 3697 [Note] InnoDB: Using atomics to ref count buffer pool pages 2020-08-18 10:54:11 3697 [Note] InnoDB: The InnoDB memory heap is disabled 2020-08-18 10:54:11 3697 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2020-08-18 10:54:11 3697 [Note] InnoDB: Memory barrier is not used 2020-08-18 10:54:11 3697 [Note] InnoDB: Compressed tables use zlib 1.2.11 2020-08-18 10:54:11 3697 [Note] InnoDB: Using Linux native AIO 2020-08-18 10:54:11 3697 [Note] InnoDB: Using CPU crc32 instructions 2020-08-18 10:54:11 3697 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2020-08-18 10:54:11 3697 [Note] InnoDB: Completed initialization of buffer pool 2020-08-18 10:54:11 3697 [Note] InnoDB: Highest supported file format is Barracuda. 2020-08-18 10:54:11 3697 [Note] InnoDB: 128 rollback segment(s) are active. 2020-08-18 10:54:11 3697 [Note] InnoDB: Waiting for purge to start 2020-08-18 10:54:11 3697 [Note] InnoDB: 5.6.46 started; log sequence number 1600617 2020-08-18 10:54:11 3697 [ERROR] ./mysqld: unknown option '--initialize' 2020-08-18 10:54:11 3697 [ERROR] Aborting 2020-08-18 10:54:11 3697 [Note] Binlog end 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'partition' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'ARCHIVE' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'BLACKHOLE' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_FIELDS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_INDEXES' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_SYS_TABLES' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_CONFIG' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_DELETED' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_METRICS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMPMEM' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMP_RESET' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_CMP' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_LOCK_WAITS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_LOCKS' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'INNODB_TRX' 2020-08-18 10:54:11 3697 [Note] Shutting down plugin 'InnoDB' 2020-08-18 10:54:11 3697 [Note] InnoDB: FTS optimize thread exiting. 2020-08-18 10:54:11 3697 [Note] InnoDB: Starting shutdown... 2020-08-18 10:54:13 3697 [Note] InnoDB: Shutdown completed; log sequence number 1600627 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'MyISAM' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'CSV' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'MRG_MYISAM' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'MEMORY' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'sha256_password' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'mysql_old_password' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'mysql_native_password' 2020-08-18 10:54:13 3697 [Note] Shutting down plugin 'binlog' 2020-08-18 10:54:13 3697 [Note] ./mysqld: Shutdown complete ```
linux

回答(0)

要回复,请先登录 或者注册