Install MySQL 5.1 on Ubuntu 12.04

1

1

Only version 5.5 is available through apt-get, but I want to install 5.1.

  1. Is there a way to install it through apt-get? Perhaps by adding a certain repository.
  2. How can I install it manually without apt-get? There were instructions in the compressed file provided by MySQL that worked reasonably well, but I had issues connecting through it and I think there were some things missing that is provided through a .deb package.

I wasn't able to find any good resources on installing it manually apart from the INSTALL-BINARY that came with it.

mangoDrunk

Posted 2012-05-17T23:31:35.843

Reputation: 121

1"I want to install 5.1" What for? 5.5 does pretty much everything 5.1 does. – Ignacio Vazquez-Abrams – 2012-05-17T23:43:36.580

1And if you don't want the latest greatest, why 12.04 as opposed to 10.04? – emgee – 2012-05-18T00:05:46.333

What about this technique OR Installing MySQL from a Standard Source Distribution

– Matthew Reid – 2012-05-18T01:20:24.213

@IgnacioVazquez-Abrams I'm not able to migrate from 5.1 to 5.5 yet. – mangoDrunk – 2012-05-21T18:22:45.730

@emgee Why do I have to stay on an older OS just because of the version of database I want? 5.1 isn't that old. – mangoDrunk – 2012-05-21T18:24:38.253

@MatthewReid Thanks for the links, those are the instructions in INSTALL-BINARY that I had some issues with. I guess I'll have to try them again. – mangoDrunk – 2012-05-21T18:26:51.840

@mangoDrunk you're absolutely right, you can get MySQL 5.1 to work in the newer version of Ubuntu. But for simplicity's sake, I personally would use 10.04 anyway, as MySQL 5.1 is in the repositories, is a snap to maintain and 10.04 Server is an LTS version, supported by Canonical until 2015. Just my $.02 – emgee – 2012-05-21T23:39:03.250

@emgee Good point, I guess I should start checking what software is supported in the newer version and see if I should update or not. – mangoDrunk – 2012-05-22T23:44:06.987

Answers

1

The solution I ended up using was MySQL Sandbox. With MySQL Sandbox, I was able to install MySQL 5.1 self-contained in one folder which is better in my opinion than having MySQL using many different folders which is harder to uninstall which may have been the reason for issues with installing 5.1 manually after having installed 5.5. With MySQL Sandbox, I'm able to have multiple instances of MySQL installed without them conflicting with one another.

mangoDrunk

Posted 2012-05-17T23:31:35.843

Reputation: 121