CENTOS7 cannot start after installing MySQL, prompt Unit Mysql.service failed to load:no such file or directory

Source: Internet
Author: User

Do not want to install Oracle, thought to install a MySQL light point, I use the Linux version is Fedora24. After performing the yum installation command, I found that the error message could not be started as follows

[Java]View PlainCopyPrint?
  1. [ Root @localhost  ~]# SYSTEMCTL START MYSQL.SERVICE  
  2. Failed to start Mysql.service:Unit mysql.service not found.
After a half-day of information, and finally learned thatmariadb instead of MySQL database, MARIADB database management system is a branch of MySQL, mainly by the open source community in the maintenance, the use of GPL license. One of the reasons for developing this branch is that after Oracle acquired MySQL, there is a potential risk of shutting MySQL out of the source, so the community uses a branching approach to avoid this risk.

So the above command does not start up, the correct method is as follows [Java]View PlainCopyPrint?
  1. # yum Install mariadb-server-y //If installed, you can omit   
  2. # systemctl start mariadb.service //Start service   
  3. # systemctl enable mariadb.service //boot service   
  4. # mysql-u Root-p //login MySQL

  5. Source: http://blog.csdn.net/ezitai/article/details/52085141

CENTOS7 cannot start after installing MySQL, prompt Unit Mysql.service failed to load:no such file or directory

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.