Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 got a very strange case here and am wondering if anyone might be able to help me.
I have installed MySQL-5.1.63 on my Ubuntu Server 12.04 LTS. When I was about to start it by using the start-up script - mysql.server under /etc/init.d
I got an error saying "MySQL Manager or server PID file could not be found!"
Then, I quickly checked for my my.cnf file which resides at /etc. I have other my.cnf file which has been renamed to /etc/mysql/my.cnf.orig.
But what puzzles me is that when I run "$ locate" command, it returned a list but there is no /etc/my.cnf there. How could this happen? I can edit and save the /etc/my.cnf file with no problem. But wonder why it is not able to locate /etc/my.cnf but others. I have restarted the server for several times but still no luck.
the locate database only updates periodically (usually as a daily cron job), so you should not expect locate to know about "new" files.
Also, what method did you use to install mysql? I think that mysql server package from the Ubuntu repos would expect my.cnf to be at /etc/mysql/my.cnf, not /etc/my.cnf (you should be able to check the startup script to confirm).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.