This blog is NOFOLLOW Free!
Posted @ 4:27 pm

Today I decided to begin the upgrade process on my webserver by performing the upgrade of MySQL4.1 to MySQL5. Here are the steps:

  • Login to WHM (Web Host Manager)
  • Click on “Tweak Settings” and scroll down to MySQL®
  • Check the Radio Button for 5.0, scroll down, and click Save
  • Log in through SSH and perform the following commands:

SuperUser:

su

Navigate to your Scripts directory:

cd /scripts/

Upgrade MySQL:

./mysqlup

Recompile MySQL Perl Modules:

./perlinstaller --force Bundle::DBD::mysql

Recompile Apache (use your previously saved configuration, unless you want to make some other changes):

./easyapache

Now at this point everything SHOULD be back to normal. There are two main issues you may run into however. The first is the one that I ran into. MySQL would fail to start with:

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

To fix this I had to perform the following:

Rename the my.cnf file as it contains some old information:

mv /etc/my.cnf /etc/my.cnf.OLD

Force MySQL to update again:

/scripts/mysqlup --force

…and that should do the trick! However, another issue that you may run into is:

Starting MySQLCouldn’t find MySQL manager or server [FAILED]

To correct this run:

nano /etc/my.cnf

Find the line that states:

basedir=/var/lib

Comment it out by adding a pound sign in front of it:

# basedir=/var/lib

Save the file and restart MySQL:

cd /etc/init.d/
./mysql restart

I’ll be adding this information to the Wiki as soon as it is ready. Enjoy!

Rate this with SezWho :
2.5

Bookmark and Share

Rate this post:
1 Star - So-so...2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars - GREAT! (1 votes, average: 10 out of 10)
Loading ... Loading ...



Related Posts


  ∫  


Categories:   CPanel   •   Control Panels   •   Server Administration

Tags:     •     •     •  






RSS feed

Comments

No comments yet.

Sorry, the comment form is closed at this time.

 
Subscribe to
The Webmaster's Edge RSS

Subscribe by
E-Mail Subscription


Recent Posts Title
Recent Posts NoDisplay
Categories Title
Categories NoDisplay
Comments Title
Tag Cloud Title
Tag Cloud NoDisplay
Archives Title
Archives NoDisplay
Commentators
  • No commentators.
Shop Cloud Title
Shop Cloud