Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Centos 7 server which setup by previous system administrator , when this server startup , it will start some service eg. apache , mysql etc, but I could not find the startup script at /etc/rc.local /etc/rc.d/rc.local or /etc/rc.d/init.d , would advise which path will be the startup script keep ?
I check systemd document , I found the httpd.service but do not find how mysql could be started , would advise how the mysql service is started ? thanks
Centos 7 uses systemd to control daemons with the user tool systemctl
The default database is mariadb, replacing mysql, so systemctl start mariadb.service should start mariadb. You might want to run mysql_secure_installation as soon as you get the database started.
Centos 7 uses systemd to control daemons with the user tool systemctl
The default database is mariadb, replacing mysql, so systemctl start mariadb.service should start mariadb. You might want to run mysql_secure_installation as soon as you get the database started.
thanks reply ,
yes , I know centos comes with mariadb .
what I want is to know how my existing server ( installed by previous colleagues) start mysql db at startup , I could not find how it could be start at bootup .
what I want is to know how my existing server ( installed by previous colleagues) start mysql db at startup , I could not find how it could be start at bootup .
It's systemd, it's a black box. There is probably a mariadb.service entry in /usr/lib/systemd/system which tells systemd how mariadb should be started, but the actual startup is going to be buried inside systemd's innards.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.