米鼠商城

多快好省,买软件就上米鼠网

最新项目

人才服务

靠谱的IT人才垂直招聘平台

centos7上mysql无法启动也没有日志

  • DDAlex
  • 9
  • 2020-07-30 09:27

精选30+云产品,助力企业轻松上云!>>>

报错的原因就是

[root@localhost duanxinli]# journalctl -xe-- Subject: Unit mysqld.service has begun start-up-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit mysqld.service has begun starting up.12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.435970Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timest12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.438425Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.24) starting as process 7422 ...12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.440408Z 0 [ERROR] Could not open file '/var/log/mysql/mysqld.log' for error logging: Permission denied12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.440434Z 0 [ERROR] Aborting12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.440479Z 0 [Note] Binlog end12月 30 22:52:01 localhost.localdomain mysqld[7419]: 2018-12-30T14:52:01.440553Z 0 [Note] /usr/sbin/mysqld: Shutdown complete12月 30 22:52:01 localhost.localdomain systemd[1]: mysqld.service: control process exited, code=exited status=112月 30 22:52:01 localhost.localdomain mysqld[7419]: Initialization of mysqld failed: 012月 30 22:52:01 localhost.localdomain systemd[1]: Failed to start MySQL Server.-- Subject: Unit mysqld.service has failed-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit mysqld.service has failed.-- -- The result is failed.12月 30 22:52:01 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.12月 30 22:52:01 localhost.localdomain systemd[1]: mysqld.service failed.12月 30 22:52:01 localhost.localdomain systemd[1]: mysqld.service holdoff time over, scheduling restart.12月 30 22:52:01 localhost.localdomain systemd[1]: Stopped MySQL Server.-- Subject: Unit mysqld.service has finished shutting down-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit mysqld.service has finished shutting down.12月 30 22:52:01 localhost.localdomain systemd[1]: start request repeated too quickly for mysqld.service12月 30 22:52:01 localhost.localdomain systemd[1]: Failed to start MySQL Server.-- Subject: Unit mysqld.service has failed-- Defined-By: systemd-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel-- -- Unit mysqld.service has failed.-- -- The result is failed.12月 30 22:52:01 localhost.localdomain systemd[1]: Unit mysqld.service entered failed state.12月 30 22:52:01 localhost.localdomain systemd[1]: mysqld.service failed. ESCOC

 

无权限,因为我用的是root用户,但是mysql执行的时候用的是mysql用户,所以无权限,需要授权!搞了一晚上操他妈的



这里给大家推荐一个在线软件复杂项交易平台:米鼠网 https://www.misuland.com

米鼠网自成立以来一直专注于从事软件项目人才招聘软件商城等,始终秉承“专业的服务,易用的产品”的经营理念,以“提供高品质的服务、满足客户的需求、携手共创双赢”为企业目标,为中国境内企业提供国际化、专业化、个性化、的软件项目解决方案,我司拥有一流的项目经理团队,具备过硬的软件项目设计和实施能力,为全国不同行业客户提供优质的产品和服务,得到了客户的广泛赞誉。



如有侵权请联系邮箱(service@misuland.com)

猜你喜欢

评论留言