首页 > mysql 5.7.11 启动报错

mysql 5.7.11 启动报错

安装

使用homebrew 安装mysql 输入命令 brew install mysql

启动

安装完毕后,使用mysql.server start 启动mysql

出错

结果终端报错 ERROR! The server quit without updating PID file

检查

配置 文件为/usr/local/Cellar/mysql/5.7.11/support_files/my-default.cnf
目录 文件为/usr/local/var/mysql
检查错误日志一共有三个错误:

 `[ERROR] Can't open the mysql.plugin table.
  [ERROR] unknown option '--general -log'
  [ERROR] Aborting`

全部日志文件:
`2016-04-05T07:04:26.6NZ mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
2016-04-05T07:04:26.577555Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-04-05T07:04:26.577855Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2016-04-05T07:04:26.577920Z 0 [Note] /usr/local/Cellar/mysql/5.7.11/bin/mysqld (mysqld 5.7.11) starting as process 41291 ...
2016-04-05T07:04:26.579823Z 0 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/var/mysql/ is case insensitive
2016-04-05T07:04:26.581966Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-04-05T07:04:26.581977Z 0 [Note] InnoDB: Uses event mutexes
2016-04-05T07:04:26.581981Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2016-04-05T07:04:26.581984Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-04-05T07:04:26.582250Z 0 [Note] InnoDB: Number of pools: 1
2016-04-05T07:04:26.582340Z 0 [Note] InnoDB: Using CPU crc32 instructions
2016-04-05T07:04:26.593996Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2016-04-05T07:04:26.603392Z 0 [Note] InnoDB: Completed initialization of buffer pool
2016-04-05T07:04:26.618796Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2016-04-05T07:04:26.625166Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2016-04-05T07:04:26.625378Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2016-04-05T07:04:26.645233Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2016-04-05T07:04:26.646081Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2016-04-05T07:04:26.646090Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2016-04-05T07:04:26.646291Z 0 [Note] InnoDB: Waiting for purge to start
2016-04-05T07:04:26.698973Z 0 [Note] InnoDB: 5.7.11 started; log sequence number 1210655
2016-04-05T07:04:26.699286Z 0 [Note] InnoDB: Loading buffer pool(s) from /usr/local/var/mysql/ib_buffer_pool
2016-04-05T07:04:26.699402Z 0 [Note] InnoDB: Buffer pool(s) load completed at 160405 15:04:26
2016-04-05T07:04:26.699471Z 0 [Note] Plugin 'FEDERATED' is disabled.
mysqld: Table 'mysql.plugin' doesn't exist
2016-04-05T07:04:26.699645Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-04-05T07:04:26.699831Z 0 [ERROR] unknown option '--general -log'
2016-04-05T07:04:26.699841Z 0 [ERROR] Aborting
2016-04-05T07:04:26.699851Z 0 [Note] Binlog end
2016-04-05T07:04:26.699897Z 0 [Note] Shutting down plugin 'ngram'
2016-04-05T07:04:26.699904Z 0 [Note] Shutting down plugin 'partition'
2016-04-05T07:04:26.699909Z 0 [Note] Shutting down plugin 'BLACKHOLE'
2016-04-05T07:04:26.699914Z 0 [Note] Shutting down plugin 'ARCHIVE'
2016-04-05T07:04:26.699919Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-04-05T07:04:26.699972Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
2016-04-05T07:04:26.699980Z 0 [Note] Shutting down plugin 'MyISAM'
2016-04-05T07:04:26.700001Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
2016-04-05T07:04:26.700006Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-04-05T07:04:26.700011Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-04-05T07:04:26.700015Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-04-05T07:04:26.700019Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-04-05T07:04:26.700024Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-04-05T07:04:26.700028Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-04-05T07:04:26.700032Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-04-05T07:04:26.700037Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-04-05T07:04:26.700041Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-04-05T07:04:26.700046Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-04-05T07:04:26.700067Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-04-05T07:04:26.700071Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-04-05T07:04:26.700076Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-04-05T07:04:26.700080Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-04-05T07:04:26.700085Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-04-05T07:04:26.700089Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
2016-04-05T07:04:26.700094Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
2016-04-05T07:04:26.700098Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-04-05T07:04:26.700103Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-04-05T07:04:26.700107Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-04-05T07:04:26.700112Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-04-05T07:04:26.700116Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-04-05T07:04:26.700121Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-04-05T07:04:26.700125Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-04-05T07:04:26.700129Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-04-05T07:04:26.700134Z 0 [Note] Shutting down plugin 'INNODB_CMP'
2016-04-05T07:04:26.700138Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-04-05T07:04:26.700143Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-04-05T07:04:26.700147Z 0 [Note] Shutting down plugin 'INNODB_TRX'
2016-04-05T07:04:26.700151Z 0 [Note] Shutting down plugin 'InnoDB'
2016-04-05T07:04:26.700199Z 0 [Note] InnoDB: FTS optimize thread exiting.
2016-04-05T07:04:26.700283Z 0 [Note] InnoDB: Starting shutdown...
2016-04-05T07:04:26.802108Z 0 [Note] InnoDB: Dumping buffer pool(s) to /usr/local/var/mysql/ib_buffer_pool
2016-04-05T07:04:26.802730Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 160405 15:04:26
2016-04-05T07:04:28.155348Z 0 [Note] InnoDB: Shutdown completed; log sequence number 1210674
2016-04-05T07:04:28.156127Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2016-04-05T07:04:28.156138Z 0 [Note] Shutting down plugin 'MEMORY'
2016-04-05T07:04:28.156146Z 0 [Note] Shutting down plugin 'CSV'
2016-04-05T07:04:28.156151Z 0 [Note] Shutting down plugin 'sha256_password'
2016-04-05T07:04:28.156154Z 0 [Note] Shutting down plugin 'mysql_native_password'
2016-04-05T07:04:28.156157Z 0 [Note] Shutting down plugin 'keyring_file'
2016-04-05T07:04:28.156349Z 0 [Note] Shutting down plugin 'binlog'
2016-04-05T07:04:28.156406Z 0 [Note] /usr/local/Cellar/mysql/5.7.11/bin/mysqld: Shutdown complete
2016-04-05T07:04:28.6NZ mysqld_safe mysqld from pid file /usr/local/var/mysql/shiyuedeMacBookPro.local.pid ended`

请问各位我该如何解决呢?


2016-04-05T07:04:26.699645Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

不能打开mysql.plugin表. 请运行mysql_upgrade创建.

2016-04-05T07:04:26.699831Z 0 [ERROR] unknown option '--general -log'

不知道的选项 '--general -log'

【热门文章】
【热门文章】