Failed to issue method call: Unit mysql.service failed to load: No such file or directory解決的方式
作者:chszs。轉(zhuǎn)載需注明。博客主頁(yè):
http://blog.csdn.net/chszs
1、軟件環(huán)境:
OpenSUSE 13.1 x64
MySQL 5.6.20 x64
2、採(cǎi)用RPM包安裝MySQL 5.6.20
# rpm -ivh MySQL-server-5.6.20-1.sles11.x86_64.rpm # rpm -ivh MySQL-client-5.6.20-1.sles11.x86_64.rpm # rpm -ivh MySQL-devel-5.6.20-1.sles11.x86_64.rpm # rpm -ivh MySQL-shared-5.6.20-1.sles11.x86_64.rpm
3、查看MySQL服務(wù)
# /etc/init.d/mysql status MySQL is not running failed mysql.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) Aug 22 15:42:26 173-168-58-139 systemd[1]: Stopped LSB: Start the MySQL database server.
可見(jiàn)。MySQL服務(wù)未啟動(dòng)。
4、啟動(dòng)MySQL服務(wù)
# /etc/init.d/mysql start redirecting to systemctl start mysql Failed to issue method call: Unit mysql.service failed to load: No such file or directory.
報(bào)錯(cuò),無(wú)法啟動(dòng)MySQL服務(wù)。
用systemctl方法
# systemctl start mysql.service仍然報(bào)例如以下錯(cuò)誤
Failed to issue method call: Unit mysql.service failed to load: No such file or directory. See system logs and 'systemctl status mysql.service' for details.
5、解決方法
# systemctl enable mysql.service
# systemctl start mysql # ps -ef | grep mysql root 27930 1 0 16:30 ?可見(jiàn),MySQL已被正確執(zhí)行。
00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/173-168-58-139.pid mysql 28045 27930 0 16:30 ? 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/173-168-58-139.err --pid-file=/var/lib/mysql/173-168-58-139.pid root 28074 25545 0 16:30 pts/1 00:00:00 grep --color=auto mysql
Failed to issue method call: Unit mysql.service failed to load: No such file or directory解決的方式
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元
