centos6 安装mysql出现一个问题 有日志...看不懂是什么问题

郑开源 发布于 2014/01/03 21:54
阅读 493
收藏 0
2014-01-03 21:54:17 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2014-01-03 21:54:17 17347 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2014-01-03 21:54:17 17347 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2014-01-03 21:54:17 17347 [Note] InnoDB: The InnoDB memory heap is disabled
2014-01-03 21:54:17 17347 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-01-03 21:54:17 17347 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-01-03 21:54:17 17347 [Note] InnoDB: Not using CPU crc32 instructions
2014-01-03 21:54:17 17347 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2014-01-03 21:54:17 17347 [Note] InnoDB: Completed initialization of buffer pool
2014-01-03 21:54:17 17347 [Note] InnoDB: Highest supported file format is Barracuda.
2014-01-03 21:54:17 17347 [Note] InnoDB: Log scan progressed past the checkpoint lsn 49463
2014-01-03 21:54:17 17347 [Note] InnoDB: Database was not shutdown normally!
2014-01-03 21:54:17 17347 [Note] InnoDB: Starting crash recovery.
2014-01-03 21:54:17 17347 [Note] InnoDB: Reading tablespace information from the .ibd files...
2014-01-03 21:54:17 17347 [Note] InnoDB: Restoring possible half-written data pages 
2014-01-03 21:54:17 17347 [Note] InnoDB: from the doublewrite buffer...
InnoDB: Doing recovery: scanned up to log sequence number 1600657
2014-01-03 21:54:17 17347 [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
2014-01-03 21:54:17 17347 [Note] InnoDB: 128 rollback segment(s) are active.
2014-01-03 21:54:17 17347 [Note] InnoDB: Waiting for purge to start
2014-01-03 21:54:17 17347 [Note] InnoDB: 5.6.15 started; log sequence number 1600657
2014-01-03 21:54:17 17347 [Note] Server hostname (bind-address): '*'; port: 3306
2014-01-03 21:54:17 17347 [Note] IPv6 is available.
2014-01-03 21:54:17 17347 [Note]   - '::' resolves to '::';
2014-01-03 21:54:17 17347 [Note] Server socket created on IP: '::'.
2014-01-03 21:54:17 17347 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
140103 21:54:17 mysqld_safe mysqld from pid file /var/lib/mysql/zsl.pid ended





虚拟机刚安装的....
加载中
0
滔哥
滔哥
检查你的目录空间,目录权限。
0
滔哥
滔哥
然后删干净了 重装一下MySQL。
0
goh
goh
装的是已经编译好的二进制包吗? 可能是没在mysql目录里面启动,也可能是没指定basedir,或者没指定datadir
0
leo108
leo108

mysql_install_db

0
枫爱若雪
枫爱若雪

引用来自“leo108”的答案

mysql_install_db

+1024
0
hejindan88V
hejindan88V
没初始化。。
0
郑开源
郑开源

解决了...

/etc/my.cnf 里面有个设置数据库文件的地址

设置成安装的目录/data 然后执行以下mysql_install_db --ldata=安装目录/data

返回顶部
顶部