|
date: Wed, 06 Jan 2010 19:26:19 -0700
from: Pete Helgren <Pete@xxxxxxxxxx>
subject: Re: [WEB400] Major upgrade on MySQL (5.0.xx to 5.1.xx)
Tim,
Thanks! I have arrived where you told me I would (a harder place). So,
here is what I know so far:
The upgrade DID work,sort of, using your instructions with the only
wrinkle being that the mysql_upgrade stumbled a little. I should have
saved the error message when I ran mysqld_safe so it might help the next
person. The reality was, as far as I could tell, MySQL really didn't
start so when I ran mysql_upgrade and nothing happened it was because
the DB wasn't running. Not sure why. So recovery was what I was
after. I checked the status of MySQL using netstat and found the port
not in use. I tried to start it through the Zend menus but nothing
happened. So I made sure that everything regarding MySQL was quiesced
and then I used QP2TERM to run the mysqld_safe command and this time it
seemed to start with no errors and then I ran the upgrade. I got a few
errors on tables that indicated that my Wordpress instance was running
so I killed the Apache instances and then ran the REPAIR TABLE command
to fix the tables that were in error.
I still got errors when Navicat tried to access the tables so I ended
the MySQL instance again and then restarted MySQL (again, using
QP2TERM). Just to be on the safe side, I ran the mysql_upgrade again
and it returned with nothing to upgrade. Navicat worked, my blogs and
web pages were back up so I assumed that all was well. So, I shut down
the instances and tried to start them using the Zend menus. The error I
eventually found was that the Zend method of starting the MySQL instance
was looking for a mysql.sh file which was not in the bin folder. I
copied the old one over but it still wouldn't start although I could run
the script from QP2TERM. So, I have just left it at that. I'll tweak
my startup routines if necessary so MySQL will start at IPL but for the
moment the dust has settled and things seem to be humming along.
The most curious thing in all of this was that my installation is in
/usr/local/ (rather than QOpenSys/usr/local) and I didn't have a my.cnf
file in etc. It is simply named my .
Yes, the MySQL site docs could use some tweaking. You may want to pull
the Upgrade instructions out of the Installation section and move them,
corrected, to the upgrade section with a subsection on i5/OS. I don't
know where the most sensible placement would be.
If there is something I still should do to ensure that the database is
properly updated, let me know.
Pete
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.