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?
MySQL Installation – Installing MySQL 5.1 Alongside MySQL 5.5 on Mac OS X
installationmac os xmysql-5.1mysql-5.5
Related Question
- Mysql – How to restore MySQL database from Files
- MySQL Major Version – Replication Support Between 5.1 and 5.6
- MySQL 5.5.58 Installing Multiple Instances on RHEL7
- Mysql – Changes between Mysql version 5.1 TO 5.7
- Mysql – Installed thesql 8 on Mac then thesql 5.7 now now they wont work
- MySQL Daemon Not Starting After Upgrade from 5.1 to 8.0 – Fixes
Best Answer
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.
[EDIT]
Forgot to mention that you have to kick off the daemon with --defaults-file (my.cnf) also.
From your base-dir issue the command
./bin/mysqld --defaults-file=<full_path_to_my.cnf>
============== sample --defaults-file =====================