百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> centos 安装mysql 5.6 无法启动 Table 'mysql.plugin' doesn'
分享文章到:

centos 安装mysql 5.6 无法启动 Table 'mysql.plugin' doesn'

发布时间:01/15 来源: 浏览: 关键词:
今天在在 centos 安装mysql 5.6 之后启动时提示 Table \'mysql.plugin\' doesn\'t exist 了,下面我们一起来看此问题解决方法。

131203 23:09:36 mysqld_safe Starting mysqld daemon with databases from /mnt/mysqldata
2013-12-03 23:09:36 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-12-03 23:09:36 2563 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2013-12-03 23:09:36 2563 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2013-12-03 23:09:36 2563 [Note] InnoDB: The InnoDB memory heap is disabled
2013-12-03 23:09:36 2563 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-12-03 23:09:36 2563 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-12-03 23:09:36 2563 [Note] InnoDB: Using CPU crc32 instructions
2013-12-03 23:09:36 2563 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-12-03 23:09:36 2563 [Note] InnoDB: Completed initialization of buffer pool
2013-12-03 23:09:36 2563 [Note] InnoDB: Highest supported file format is Barracuda.
2013-12-03 23:09:36 2563 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463
2013-12-03 23:09:36 2563 [Note] InnoDB: Database was not shutdown normally!
2013-12-03 23:09:36 2563 [Note] InnoDB: Starting crash recovery.
2013-12-03 23:09:36 2563 [Note] InnoDB: Reading tablespace information from the .ibd files...
2013-12-03 23:09:36 2563 [Note] InnoDB: Restoring possible half-written data pages
2013-12-03 23:09:36 2563 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 1600607
2013-12-03 23:09:36 2563 [Note] InnoDB: Starting an apply batch of log records to the database...
InnoDB: Progress in percent: 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
InnoDB: Apply batch completed
2013-12-03 23:09:36 2563 [Note] InnoDB: 128 rollback segment(s) are active.
2013-12-03 23:09:36 2563 [Note] InnoDB: Waiting for purge to start
2013-12-03 23:09:36 2563 [Note] InnoDB: 5.6.14 started; log sequence number 1600607
2013-12-03 23:09:36 2563 [Note] Server hostname (bind-address): '*'; port: 3306
2013-12-03 23:09:36 2563 [Note] IPv6 is available.
2013-12-03 23:09:36 2563 [Note]   - '::' resolves to '::';
2013-12-03 23:09:36 2563 [Note] Server socket created on IP: '::'.


2013-12-03 23:09:36 2563 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist


解决办法:


1. 创建初始文件:

./scripts/mysql_install_db  --user=mysql --ldata=/mnt/mysqldata

2. 删 除重复的配置文件 my.cnf


3. 看官方文档

http://dev.mysql.com/doc/refman/5.6/en/option-files.html

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有7人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板