Ask Your Question

How to start MySQL Server at system boot.

asked 2013-10-04 07:09:46 -0500

Souvik gravatar image

updated 2013-10-05 02:35:39 -0500

FranciscoD_ gravatar image

Hello, I just installed Fedora 19 two days back. I have also installed MySQL Server 5.6.14. Now, every time I start my machine, I have to manually start MySQL Server using mysqld_safe. Can anybody tell me how to start MySQL Server automatically at system boot in Fedora 19. Thanks in advance.

edit retag flag offensive close merge delete


Sorry, none of the commands are working for me. I acquired root privilege by su -. Then I did systemctl enable mysqld.service. I got the message "Failed to issue method call: No such file or directory". What am I doing wrong?

Souvik gravatar imageSouvik ( 2013-10-05 02:28:25 -0500 )edit

How have you installed mysql server?

FranciscoD_ gravatar imageFranciscoD_ ( 2013-10-05 02:35:10 -0500 )edit

I installed it via rpm. Used rpm -i MySQL-server-5.6.14-1.linux_glibc2.5.x86_64.rpm

Souvik gravatar imageSouvik ( 2013-10-05 02:46:50 -0500 )edit

So, not from the Fedora repositories? You'll have to read the documentation that the website that you downloaded off provides. All the answers/comments here are given assuming you use packages from the fedora repositories.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-10-05 21:46:43 -0500 )edit

Ok, let me see if I find anything in the MYSQL website. Thanks.

Souvik gravatar imageSouvik ( 2013-10-06 22:13:21 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-04 09:28:19 -0500

Hi: Old school way

sudo chkconfig mysqld on

New way

sudo systemctl enable mysqld.service

Kind regards

edit flag offensive delete link more


Are changes made by chkconfig and systemctl persistent?

hawkfeather gravatar imagehawkfeather ( 2013-10-05 00:04:56 -0500 )edit

Absolutely. chkconfig 'service name' on makes the changes persistent while systemctl enable is the new way of accomplishing the same task using systemd. Only systemctl start is not persistent...

Amit Caleechurn gravatar imageAmit Caleechurn ( 2013-10-05 01:48:24 -0500 )edit

A read of the systemd documentation is suggested. man systemctl is a good place to start.

FranciscoD_ gravatar imageFranciscoD_ ( 2013-10-05 02:34:21 -0500 )edit

hello , please add how disabled or avoid run on startup

christianbueno gravatar imagechristianbueno ( 2017-08-11 09:19:25 -0500 )edit

I yet find

christianbueno gravatar imagechristianbueno ( 2017-08-11 09:40:17 -0500 )edit

answered 2014-05-04 08:19:51 -0500

forsaken gravatar image

sudo systemctl enable mariadb.service

edit flag offensive delete link more


This works for me.

Air gravatar imageAir ( 2014-06-29 06:58:37 -0500 )edit

This works for me, running Fedora 20

rayfoss gravatar imagerayfoss ( 2014-07-31 12:13:16 -0500 )edit

Question Tools

1 follower


Asked: 2013-10-04 07:09:46 -0500

Seen: 18,233 times

Last updated: May 04 '14