mysql 5.5 is installed. I need 5.1 to install an old website so it can be updated. The installer refuses to let me install onto the disk with 5.5. I don't have any other disks. I downloaded the package file DMG. Help? Can I get around this with a different kind of source file?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
I'm no expert on Mac OS X, but on Linux, it's relatively easy to have more than one install running side by side.
I follow a procedure very much based on the one here.
Download the source code. Gunzip and untar it. As a sister directory to the unzipped and untarred one, create a directory (I call it "sandbox"). From within sandbox, run "cmake ../", then "make" and then "make package". Then I copy the package up a level, gunzip and untar it and run the ./scripts/mysql_install_db --defaults-file=.
It's the --defaults-file (i.e. my.cnf) that's critical. In there you override the normal defaults - otherwise multiple MySQLs on the same machine will just overwrite each other's settings. I've appended a sample of my own file below. I just put all the extra stuff into the --basedir directory and that normally works a treat. Things like the socket, pid-file and, of course, the port need to be changed.
You may be able to just run the binary install script with the --defaults-file and get your system up and running without having to compile, but as I said, I'm not that familiar with OS X.
Forgot to mention that you have to kick off the daemon with --defaults-file (my.cnf) also.
From your base-dir issue the command
============== sample --defaults-file =====================