Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2011
    Posts
    14

    Default Mysql Database Optimization on Cpanel/WHM server

    Optimize MySQL Databases on Cpanel/WHM server

    1. Open an SSH connection to the server and log in as the root user.

    To repair and optimize a single database, run the following commands:

    mysqlcheck -u DATABASEUSER -p --auto-repair --check --optimize --all-databases

    It will ask for the DATABASE user password :

    To repair and optimize a all databases, run the following commands:

    mysqlcheck --auto-repair --check --optimize --all-databases

    It will repair and optimize your Mysql databases, Restart MySQL after you've done the above:

    /etc/init.d/mysql restart

    Done...
    Last edited by Alec:D; 16-04-2011 at 10:37.

  2. #2

    Default

    Quote Originally Posted by Alec:D View Post
    mysqlcheck --auto-repair --check --optimize --all-databases
    That the same as

    mysqlcheck -Aor

    ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •