Failed to issue method Call:unit Mysql.service Failed to load:no such file or directory resolved way
Chszs. Please note the reprint. Blog home:Http://blog.csdn.net/chszs
1. Software Environment:
OpenSUSE 13.1 x64
MySQL 5.6.20 x64
2. Install MySQL 5.6.20 with RPM package
# 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. View MySQL Service
#/etc/init.d/mysql Statusmysql is not running failedmysql.service loaded:not-found (reason:no such file or dire ctory) active:inactive (dead) 15:42:26 173-168-58-139 systemd[1]: Stopped lsb:start the MySQL database server.
Visible. The MySQL service is not started.
4. Start the MySQL service
#/etc/init.d/mysql startredirecting to Systemctl start mysqlfailed to issue method Call:unit Mysql.service failed to Loa D:no such file or directory.
Error, unable to start MySQL service.
Using the Systemctl method
# Systemctl Start Mysql.service
Still reported for example the following error
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. Solution
# Systemctl Enable Mysql.service
6. Start MySQL again
# systemctl start mysql# ps-ef | grep mysqlroot 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.pidmysql 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.pidroot 28074 25545 0 16:30 pts/1 00:00:00 grep--color=auto MySQL
As can be seen, MySQL has been executed correctly.
Failed to issue method Call:unit Mysql.service Failed to load:no such file or directory resolved way