Solved

Upgrade Mysql to 5.1.59 or .58 on Ubuntu Server Natty

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Soundcloud.com 4 47
Complex SQL statement in VB.NET 7 31
IP 10.0.1.2 / 255.0.0.0 61 57
edit firefox cookie settings via shell script on ubuntu 14? 1 6
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 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