How to upgrade mysql from cpanel/whm or from shell

Discussion in 'Site & Server Administration' started by deriklogov, Aug 31, 2009.

  1. #1
    How to upgrade mysql from cpanel/whm or from shell.
    I am currently have 5.0 want to upgrade to latest version.
     
    deriklogov, Aug 31, 2009 IP
  2. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    login via ssh issue the following:
    
    mkdir MYSQLBAK
    cp -pr /var/lib/mysql/
    
    Code (markup):
    then find /var/cpanel/cpanel.conf or config (forget off the top of my head)
    find mysql and change to 5.0 (you may want to mv my.cnf to my.cnf.bak while doing this...
    then just do a /scripts/upcp --force

    You will need to rebuild php and apache afterward. There may be other ways to do this, but I feel that this, while being more work, is the most stable way to do so. I've done it somewhere in the realm of 75-100 times. Let me know if you run into any problems.
     
    SecureCP, Aug 31, 2009 IP
  3. deriklogov

    deriklogov Well-Known Member

    Messages:
    1,078
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    130
    #3
    but I already have 5.0 , I want to upgrade to later than 5.0 , is that 5.1.4 current ?

    I read that if you changing from 5.0 in cpanel to some higher version - you could get crash of system because cpanel doesnt support higher than 5.0
    so I want to make it safe
     
    deriklogov, Aug 31, 2009 IP
  4. SecureCP

    SecureCP Guest

    Messages:
    226
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    cpanel does support higher than 5.0, just put in 5.1 and run the upcp --force instead of 5.0. be sure to backup dbs and move the my.cnf. If you want help, pm me.
     
    SecureCP, Aug 31, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    kailash, Sep 2, 2009 IP