码迷,mamicode.com
首页 > 数据库 > 详细

centos 7 mariadb 启动问题

时间:2016-12-07 23:16:56      阅读:375      评论:0      收藏:0      [点我收藏+]

标签:log   指定   配置   start   nbsp   for   abort   centos 7   detail   

安装完了 mariadb 后 有一天重启机器发现 启动不了 mariadb.service 

systemctl start mariadb.service //然后发现下面的问题

job for mariadb.service failed because the control process exited with error  code .

See "systemctl status mariadb.service" and "journalctl -xe" for details

// 按照上面的 查看 一无所获  但是看见了 "journalctl -xe"里面在启动 mariadb的时候 有Logging  to ‘/var/log/mariadb/mariadb.log‘ 然后就去查看了这个 log

找到最后下面在Aborting 上面有 一行 Character set ‘utf8‘ is not a compiled character set and is not specified in the ‘/usr/share/mysql/charsets/Index.xml‘

之后去查看这个Index.xml 发现里面有utf8 这个配置 

日了狗了

然后就猜想 服务器的配置可能没指定 字符集  

接着找到 服务器配置

在/etc/mycnf.d 里面有一个 server.cnf  在 [mysqld] 下面 添加

character-set-server=utf8  保存

然后 systemctl start mariadb.service 

ok搞定

 

centos 7 mariadb 启动问题

标签:log   指定   配置   start   nbsp   for   abort   centos 7   detail   

原文地址:http://www.cnblogs.com/CodeWu91/p/6142958.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!