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.
Dear All,
I would like a add a process(mysql in this case) to startup, so that when ever the linux machine boots,mysql also starts automatically(To be precise, iam lookin for something similar to start->run->MSCONFIG->startup in Windows).
i tried chkconfig --add mysql, but i get the following error."error reading information on service mysql: No such file or directory" .Kindly guide me.
This will create startup and kill links for squid with sequence 90 for startup (after most of the others) on runlevel 2,3,4,5 and 03 for kill (before most of the others) on runlevel 0,1 and 6.
Making the (very possibly wrong) assumption that chkconfig means a Red Hat family system, try chkconfig mysqld. As mentioned in both of the above posts, the things which chkconfig can operate on are all files under /etc/init.d.
mysql, mysqld just a script name, you can have any name. therefore we will have to pretty sure whether is there any startup script which is related to mysql
you can list all services added on which runlevel
#chkconfig --list
To add a services in runlevels
chkconfig --level 345 squid on
345 means runlevel
It can have any name, but the mysql package of his distro installs it under a specific name which is probably not httpd, shorewall, or anything else. Five bucks says he's on Red Hat, Fedora, or CentOS, where it should be mysqld.
Ya i agree with you naming is very important if not users may be confused with application but what i said above its just a scritname, there are no necessity to be "d"
True; I bolded the d only to make the difference between what the OP tried and what I was suggesting more obvious. Even blind, it's not a bad guess, though; 33 of my 85 available scripts are named with the usual daemon convention.
In that case, up it to ten bucks. Try chkconfig mysqld.
By the way, while you're here - I highly recommend upgrading your Fedora. FC6 is very old by Fedora standards - it's not even called Fedora Core anymore. If nothing else, consider this - should someone discover tomorrow that the right series of port knocks will cause the OpenSSH server to crap itself and provide root shell access to anyone who asks, you won't get the update that fixes that. Ever.
I'm not sure how being on a 'server' (whatever you mean by that) is relevant, but I realized that I misunderstood your original post. First things first - run chkconfig --list and see if there's a mysqld in there. The package (did you install it through yum or other package management?) should have given you an init script that you just need to enable, if for some reason it isn't already.
Server i meant is that, i cannot update it ,alteast for now.I DO NOT find mysqld process running when i gibe chkconfig --list .. . yes, i did it using Yum..
To start with, Iam a newbie to linux and kindly pasdon me if my questions are not very clear.
i didnot start the daemon last time.. but this time, even after startin the daemon, i dont find mysqld daemon when i gibe ckkconfig --list. anyways, on starting mysql manually and again trying chkconfig --list, still i dint see any mysql or mysqld process being listed.(yes, i do find it when i use nmap localhost) .
anyways all i want to know is how to make mysql start automatically when the linux machine starts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.