日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式...

發(fā)布時(shí)間:2023/12/10 数据库 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式... 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Failed to issue method call: Unit mysql.service failed to load: No such file or directory解決的方式

作者:chszs。轉(zhuǎn)載需注明。博客主頁:http://blog.csdn.net/chszs

1、軟件環(huán)境:

OpenSUSE 13.1 x64

MySQL 5.6.20 x64


2、採用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.serviceLoaded: 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.

可見。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ò),無法啟動(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


6、再次啟動(dòng)MySQL

# systemctl start mysql # ps -ef | grep mysql root 27930 1 0 16:30 ?

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

可見,MySQL已被正確執(zhí)行。

總結(jié)

以上是生活随笔為你收集整理的Failed to issue method call: Unit mysql.service failed to load: No such file or directory解决的方式...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。