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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
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.
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.
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.