centOS安装mysql之后无法启动

男人的苦_谁能懂 2014-04-16 05:20:32
今天在机器上安装mysql,安装都完毕了,但是后面启动的时候一直报错,在网上找了很多帖子都没办法。特此向各位大侠求教
以下时我机器上的错误日志
140416 16:41:53 mysqld_safe Starting mysqld daemon with databases from /opt/mysql/data
2014-04-16 16:41:53 0 [Warning] Ignoring user change to 'ser=root' because the user was set to 'mysql' earlier on the command line

2014-04-16 16:41:53 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-04-16 16:41:53 6274 [Note] Plugin 'FEDERATED' is disabled.
/opt/mysql/bin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13 - Permission denied)
2014-04-16 16:41:53 6274 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2014-04-16 16:41:53 6274 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-04-16 16:41:53 6274 [Note] InnoDB: The InnoDB memory heap is disabled
2014-04-16 16:41:53 6274 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-04-16 16:41:53 6274 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-04-16 16:41:53 6274 [Note] InnoDB: Not using CPU crc32 instructions
2014-04-16 16:41:53 6274 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-04-16 16:41:53 6274 [Note] InnoDB: Completed initialization of buffer pool
2014-04-16 16:41:53 6274 [Note] InnoDB: Highest supported file format is Barracuda.
2014-04-16 16:41:54 6274 [Note] InnoDB: 128 rollback segment(s) are active.
2014-04-16 16:41:54 6274 [Note] InnoDB: Waiting for purge to start
2014-04-16 16:41:54 6274 [Note] InnoDB: 5.6.17 started; log sequence number 1600607
2014-04-16 16:41:54 6274 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: f650de80-c542-11e3-892b-1c6f65b0cea6.
/opt/mysql/bin/mysqld: File './auto.cnf' not found (Errcode: 13 - Permission denied)
2014-04-16 16:41:54 6274 [ERROR] Failed to create file(file: './auto.cnf', errno 13)
2014-04-16 16:41:54 6274 [ERROR] Initialzation of the server's UUID failed because it could not be read from the auto.cnf file. If this is a new server, the initialization failed because it was not possible to generate a new UUID.
2014-04-16 16:41:54 6274 [ERROR] Aborting

2014-04-16 16:41:54 6274 [Note] Binlog end
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'partition'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_METRICS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMPMEM'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_CMP'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_LOCKS'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'INNODB_TRX'
2014-04-16 16:41:54 6274 [Note] Shutting down plugin 'InnoDB'
2014-04-16 16:41:54 6274 [Note] InnoDB: FTS optimize thread exiting.
2014-04-16 16:41:54 6274 [Note] InnoDB: Starting shutdown...
2014-04-16 16:41:55 6274 [Note] InnoDB: Shutdown completed; log sequence number 1600617
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'ARCHIVE'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'BLACKHOLE'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'MRG_MYISAM'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'MEMORY'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'CSV'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'MyISAM'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'sha256_password'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'mysql_old_password'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'mysql_native_password'
2014-04-16 16:41:55 6274 [Note] Shutting down plugin 'binlog'
2014-04-16 16:41:55 6274 [Note] /opt/mysql/bin/mysqld: Shutdown complete

140416 16:41:55 mysqld_safe mysqld from pid file /opt/mysql/data/testmachine2.pid ended
...全文
757 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
PoorScholor1st 2014-04-22
  • 打赏
  • 举报
回复
楼主解决了没有?学习学习
anyonsss 2014-04-22
  • 打赏
  • 举报
回复 1
1:更改basedir和datadir的属主属组为mysql 2:重新初始化mysql 3:启动mysql看看
某鸟 2014-04-22
  • 打赏
  • 举报
回复
/opt/mysql/bin/mysqld: File './auto.cnf' not found (Errcode: 13 - Permission denied)
  • 打赏
  • 举报
回复
引用 1 楼 aiirii 的回复:
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
运行了没用
aiirii 2014-04-16
  • 打赏
  • 举报
回复
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.

19,615

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧