Solved

Upgrade Mysql to 5.1.59 or .58 on Ubuntu Server Natty

Posted on 2011-09-28
4
339 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

914 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

12 Experts available now in Live!

Get 1:1 Help Now