How do I run multiple versions of MySQL on one server box? This is on a box running SUSE Enterprise Server 10. The initial installation of MySQL v5.0.45 was done via RPM. I am now being asked to setup a second MySQL running version 5.1.36 to run simultaneously with the previous version. I've downloaded the tarball for the binary distribution of MySQL v5.1.36.
I'm looking for specifics in how to set it up as well as any recommendations on managing the two different versions. Where I have one my.cnf or mutiple ones? Should I keep them in /etc or perhaps in the basedir of each MySQL instance? What is the best way to start and shutdown of both servers? etc.?
Answer
It works fine. Just specify separate conf, port, sock, etc. Personally, I would probably maintain a /etc/my.server1.cnf
and /etc/my.server2.cnf
for individual server settings. And for startup, just copy /etc/init.d/mysqld
(or whatever it is called for Suse), and it should be just a matter of updating some variables to make the new script start the second server.
Comments
Post a Comment