Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)

I need to use MySQL on CentOS7. I have installed MySQL package using yum.

[root@node01 ~]# yum install mysql mysql-*

Then,

[root@node01 ~]# systemctl start mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.

I can not execute MySQL. How can I solve this issue?

1 Answer

0 votes
by (12.7k points)

When you execute

yum install mysql

The command by default it installs mariadb, not mysql. so try this below command

yum list installed | grep mariadb

If mariadb-server is missing you can try this below command.

yum install mariadb-server

It will install the server package then start the service.

systemctl start mariadb

or

service mariadb start

My issue got solved in this way.

Want to get certified in SQL? Register for the SQL Training course by Intellipaat.

Related questions

0 votes
1 answer
asked Dec 5, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer
asked Dec 15, 2020 in SQL by Appu (6.1k points)
0 votes
1 answer
0 votes
1 answer

Browse Categories

...