欢迎投稿

今日深度:

centos 7 mariadb 启动问题,centosmariadb

centos 7 mariadb 启动问题,centosmariadb


安装完了 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搞定

 

www.htsjk.Com true http://www.htsjk.com/mariadb/10833.html NewsArticle centos 7 mariadb 启动问题,centosmariadb 安装完了 mariadb 后 有一天重启机器发现 启动不了 mariadb.service systemctl start mariadb.service //然后发现下面的问题 job for mariadb.service failed because the control...
相关文章
    暂无相关文章
评论暂时关闭