[mysql@gebiji.com mysql]$bin/mysqld --initialize --user=mysql --basedir=/mysql/mysql/ --datadir=/mysql/data/ --lc_messages_dir=/mysql/mysql/share --lc_messages=en_US
lc_messages_dir,lc_messages分别用于指定lc messages的位置和语言,执行上面的命令后,日志输出如下:
2016-04 06T06:28:53.750837Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-04-06T06:28:55.082940Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-04-06T06:28:55.576112Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-04-06T06:28:55.818866Z 0 [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: d6a65fff-fbc0-11e5-80ec-54899872f92d.
2016-04-06T06:28:55.883919Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-04-06T06:28:55.884768Z 1 [Note] A temporary password is generated for root@localhost: ia&?YkFg1s
[mysql@gebiji.com mysql]$
这样应该就没有问题了。
Linux在开机的时候提示unable to load selinux policy错误,导致系统无法进入,通常是由2个情况所导致的,下面就给大家介绍下Linux开机报错unable to load selinux policy的解决方法。情景一:
在修改/etc/selinux/config SELINUX=disable后开机出现
unable to load selinux policy. machine is in enforcing mode. halting now.
kernel panic-not syncing:attempted to kill init!
解决方法:
在Grub启动菜单上按e进入编辑模式,在启动项
“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet”
后面加上 enforcing=0 ,回车,然后按b启动即可。
情景二:
在强制关闭装有KVM虚拟机的实体机时,开机起不来出现以下画面:
然后进入grub命令行,执行:/etc/inittab,出现一些初始化失败的信息:
。。。。。。。。.unable to load selinux policy.。。。。。。。。。
解决办法:
在Grub启动菜单上按e进入编辑模式,进入启动项
“kernel /vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet”,添加selinux=0;
然后再reboot就好了。
上面就是Linux开机报错unable to load selinux policy的解决方法的介绍了,如果你的系统在开机的时候出现该提示,先要了解是哪种情况所导致的,再选择正确的方法进行处理。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)