Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
Ok so after looking at the mysql site it looks like you need to specify two cnf files. like my1.cnf and my2.cnf. Then under your etc rc locate the mysql startup file and change the my.cnf file that is loaded. Now each mysql file will need to have different ports , sockets, pid-files, and shared memory base names.
That's just my problem though.. in the file /etc/rc.d/init.d/mysql there's no mention of the file my.cnf file anywhere..
the /etc/init.d and /etc/rc.d/init.d mysql is the binary. You actully want to look in inittab and find out your systems default runtime. Then find the file that has and S99 or K99 or something to that effect. That will be the loading script that contains the call to load mysql with the specified my.cnf file. what distro are you using for this?
Ok I think I did get a little confusing on my last post. In short what you are actually looking at is the binary file. Not the script that calls the binary. Also the binary will look for the default my.cnf file. As far as I know. So what you will want is a script that calls the mysqld binary and uses a parameter that specifies which my.cnf file to use.
Can you post what distro you are using? That way I can tell how bootup scripts are called. Also check for things like /etc/rc2.d or /etc/rc.d/rc2 or 3. Under those directories try looking for a mysql script in there. That is what should be specifing what .cnf file is being called.
Ok so further digging led me to here. http://dev.mysql.com/doc/refman/4.1/...qld-multi.html It looks like you will still use the same my.cnf file but specify the multiple instances in your my.cnf file. IE
[mysql0] at the bottom of the page there looks like a good example of a my.cnf file for reference. Hope this clears up a little bit.