The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optimize Databases

Discussion in 'Database Discussions' started by Nirjonadda, Aug 28, 2014.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    When I run an optimize for all databases with this command:

    Code:
    mysqlcheck -u root --auto-repair --check --optimize --all-databases
    OR

    Code:
    mysqlcheck -Aor
    Does not work and get this error, How to fixing on this issue ?

    Error: mysqlcheck doesn't support multiple contradicting commands.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Take out the "--check" flag from your first command and it should proceed. There is no need to check the databases if you are already going to attempt the repair.

    Thank you.
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    What is the "--check" flag ? Please post the Correct code command. Does this Correct commands?

    Code:
    mysql -u root --auto-repair --check --optimize --all-databases
    or

    Code:
    mysql -Aor
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    These are not commands that cPanel endorses, so we won't post commands like that. Essentially, for that command to work, you would have to remove the "--check" part of the command.

    Thank you.
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    Website Owner
    Thanks, Now working !

    Code:
    mysqlcheck -u root --auto-repair --optimize --all-databases
     
    #5 Nirjonadda, Aug 28, 2014
    Last edited: Aug 28, 2014
Loading...

Share This Page