Running 4.1 and 5.0 simultaneously on linux

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi all,

My app needs to access two db instances - one running 4.1, and another
running 5.0 so I can use stored procedures. For testing I want to do
this on the same machine.

Question: How can I run 4.1 and 5.0 simultaneously on linux - Suse 9.3
in particular? My goal is to do no harm to my current 4.1 setup. Can
the 4.1 and 5.0 rpm's play nice together? Can I use the rcmysql
commands for running multiple versions?  


Re: Running 4.1 and 5.0 simultaneously on linux wrote:
Quoted text here. Click to load it

This should be possible if you make sure that each instance has its own
distinct configuration for the following:
- install directories
- data directories
- port numbers
- socket files
- log files
- /etc/init.d scripts
- my.cnf files
- maybe something else I'm forgetting.

I wouldn't recommend using the RPM's to do this.  Maybe install one from
its RPM, but get the tarball for the other so you can unpack it in a
distinct location.

You might even want to compile the 'custom' one from source so you can
specify at build time the location of a distinct hard-coded datadir.

Refer to docs for the my.cnf file to set up the other properties distinctly.

Bill K.

Site Timeline