How Do I Downgrade MySQL From 5 To 4.1 In WHM?

Discussion in 'Site & Server Administration' started by gobbly2100, Jan 26, 2008.

  1. #1
    Hey,

    I am a noob to running a dedicated server but I really need to reinstall MySQL 4.x back on my server.

    As default it had 4.x on it but I was stupid and upgraded it to 5 and now nothing works so I need to go back.

    Thanks in advance!
     
    gobbly2100, Jan 26, 2008 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    IMO MySQL5 is a better choice (4 is in EOL). Try to sort out the problems instead of downgrading. what's the exact problem?
     
    agnivo007, Jan 26, 2008 IP
  3. ilovelinux

    ilovelinux Peon

    Messages:
    285
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #3
    We can help you fix the problem. :)
     
    ilovelinux, Jan 27, 2008 IP
  4. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Well the problem was MySQL could not find the mysql.sock file or something.

    From what I was reading, some files have been moved around since 4.x and I needed to upload all the MySQL 5 files.

    I had to get my host to downgrade for me for now sadly.

    Thanks though guys!
     
    gobbly2100, Jan 27, 2008 IP
  5. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #5
    After you upgrade to MySQL5 you need to recompile PHP which would mean running the Apache build system again.

    It also I believes instructs you to run a command from ssh to complete the upgrade.
     
    InFloW, Jan 27, 2008 IP
  6. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah I did follow all the instructions using SSH and such and it said installation complete but it was showing as the MySQL server was down in WHM and when trying to run anything I would get the error saying it cannot connect due to missing mysql.sock.

    How am I supposed to upgade to MySQL5 if I am to not use WHM at all?
     
    gobbly2100, Jan 27, 2008 IP
  7. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #7
    service mysql restart

    do that from ssh see what error it gives you.

    Then check the error log for mysql it may provide more detailed explanation as to why it's not working.

    You could also try running the mysql update script again from command line to get the latest versions.

    There is also the option of contacting cPanel support as WHM broke the MySQL (I am assuming thats what happened)
     
    InFloW, Jan 27, 2008 IP