centos 7 mariadb 啟動問題

來源:互聯網
上載者:User

標籤: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 啟動問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.