1. 程式人生 > >mysql:mysql is neither service nor target!?(suse12 sp2 )

mysql:mysql is neither service nor target!?(suse12 sp2 )

安裝 neither target 會有 操作系統 file systemctl ask 無法啟動

今天想在自己的虛擬機上安裝mysql,安裝好了並且初始化之後,一直無法啟動mysql.

1.service mysql start;

報錯:mysql is neither service nor target!?

2.systemctl start mysql:

報錯:sysemctl start mysql : Failed to star mysql.service: Unit mysql.service failed to load: No such file ....

解決方式:

systemctl unmask mysql.service
service mysql start


註意:操作系統是suse12 sp2,可能會有版本差別。

mysql:mysql is neither service nor target!?(suse12 sp2 )