Solved

Upgrade Mysql to 5.1.59 or .58 on Ubuntu Server Natty

Posted on 2011-09-28
4
337 Views
Last Modified: 2012-05-12
I really need some help getting mysql upgraded on my ubuntu 11.04 server.

I have a practice server to test this on because when I do the live i need it to work flawlessly.

I have tired myself to upgrade but cannot get it to work. Numerous problems arise. Can anyone give me a walkthrough that they know works perfectly.

I have php 5.3.5 and Mysql Server 5.1.54 currently installed.

Ultimate solution would allow 5.3.8 and 5.1.59 installed

I would settle for getting php 5.3.6 and Mysql 5.1.58 if's possible to drop in the Oneiric packages somehow and just get them working.
0
Comment
Question by:NorthReptile
  • 2
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 36715812
I don't know about PHP, but when I upgrade MySQL I normally do:

1.  Shut down mysql
2.  Backup the whole data directory (check your my.cnf for this)
3.  Uninstall the old MySQL
4.  Install new version
5.  Shutdown the newly installed version
6.  Copy back the data directory
7.  Start MySQL
0
 

Author Comment

by:NorthReptile
ID: 36715910
I really need a very specific Ubuntu 11.04 installation/upgrade guide. I have spent the last 3 hours trying to get the test server up and running again which included manually removing every trace and purging the packages and reinstalling and still it fails to start. Even with the default packages in apt still installed and the my.cnf and /var/lib/mysql folder restored it still won't start.

I really don't understand why upgrading a database application in Linux is so damn hard.
0
 
LVL 24

Expert Comment

by:johanntagle
ID: 36716456
Look for the error log location in your my.cnf and take a look at it.  That should contain the error message related to why MySQL won't start.  Also check the permissions of /var/lib/mysql directory and its contents.

It shouldn't be that hard - you are likely just missing something.
0
 

Author Comment

by:NorthReptile
ID: 36716517
I managed to get it started again after a lot of playing around.

I have added the Oneirc repos and upgraded the packages which gets me as far as 5.3.6 and Mysql 5.1.58 which is a good start.

Still looking for a good 5.3.8 / 5.1.59 solution though.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now