Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

mysql_upgrade "FATAL ERROR: Upgrade failed"

Discussion in 'Database Discussion' started by NickolaiLeschov, Apr 11, 2014.

  1. NickolaiLeschov

    NickolaiLeschov Registered

    Joined:
    Apr 11, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    When I ssh to the server and run mysql_upgrade, it returns:
    Code:
    Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock' 
    Failed to ALTER DATABASE `#mysql50#.cache` UPGRADE DATA DIRECTORY NAME
    Error: Incorrect database name '#mysql50#.cache'
    Failed to ALTER DATABASE `#mysql50#.config` UPGRADE DATA DIRECTORY NAME
    Error: Incorrect database name '#mysql50#.config'
    Failed to ALTER DATABASE `#mysql50#.local` UPGRADE DATA DIRECTORY NAME
    Error: Incorrect database name '#mysql50#.local'
    Running 'mysqlcheck' with connection arguments: '--port=3306' '--socket=/var/lib/mysql/mysql.sock' 
    mysqlcheck: Got error: 1102: Incorrect database name '#mysql50#.cache' when selecting the database
    FATAL ERROR: Upgrade failed
    I tried to delete '#mysql50#.cache' - it throws:

    Code:
    #1102 - Incorrect database name '#mysql50#.cache'
    What can I do?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Does /var/lib/mysql/mysql50.cache exist as a directory on your system?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. NickolaiLeschov

    NickolaiLeschov Registered

    Joined:
    Apr 11, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    No.
    But there are '/var/lib/mysql/.cache', '/var/lib/mysql/.config' and '/var/lib/mysql/.local'.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Those are not standard directories. Did you have a custom installation of MySQL at some point? Rather than removing those directories, I suggest moving them to another location and then checking to see if the same error message persists.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice