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

Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

时间:2014-08-20 22:19:43      阅读:1085      评论:0      收藏:0      [点我收藏+]

标签:des   blog   http   io   ar   art   问题   html   

可能的原因:

1、http://blog.sina.com.cn/s/blog_4692ea0a0101jqhz.html

2、http://diag.5ustore.com/proxy/index.php?url=1J1h12y31F1b1918yLyByU1FyNyjyD101z1612yo1C1cyc1sy3yc1yyN161611yY0RyiyiyJyY1hymylyj1hyL1gyS1LyWyR1Myhyk0VyMylyvyg0j1j1D1F1k18171r1P1HyuyI1DyNyB1zynyK1yyZyT1y1j1Fyd0Kyj1tyN1xya

 

自己遇到的问题,时 stackoverflow

mysqld.service is a "virtual" unit – it doesn‘t exist on the filesystem, it‘s just part of systemd‘s compatibility layer. You can start it and systemd will run the legacy /etc/rc.d/mysqld initscript, but you cannot systemctl enable it because you need a real .service file which could be symlinked into the proper place.

You can write such a unit yourself and put it in /etc/systemd/system/mysqld.service:

[Unit]
Description=MySQL Server
After=network.target

[Service]
ExecStart=/usr/bin/mysqld --defaults-file=/etc/mysql/my.cnf --datadir=/var/lib/mysql --socket=/var/run/mysqld/mysqld.sock
User=mysql
Group=mysql
WorkingDirectory=/usr

[Install]
WantedBy=multi-user.target

Run systemctl daemon-reload after creating/modifying.

Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.,布布扣,bubuko.com

Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

标签:des   blog   http   io   ar   art   问题   html   

原文地址:http://www.cnblogs.com/AloneSword/p/3925470.html

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