Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    67

    Default Repair all database in mysql

    Hello
    we have whm in my server
    in whm is one part to name
    Repair Mysql Database


    this is only for one database
    how may i repaired all database in my server?

    Thanks
    Only cpanel/Whm

  2. #2
    Member psrsathish's Avatar
    Join Date
    Jul 2006
    Location
    Madurai, TN, India.
    Posts
    20

    Default

    Hi,

    Its not possible to repair all the databases in one time. You need to repair each and every database separately.
    Sathish Kannan S

  3. #3
    Member
    Join Date
    Nov 2006
    Posts
    101

    Default

    mysqlcheck -Aao --auto-repair -u root --password="ROOTPASS"

    use the quotes also :P

  4. #4
    Member
    Join Date
    Jun 2006
    Posts
    8

    Default

    /etc/rc.d/init.d/mysql stop

    2) Repair all SQL databases:
    myisamchk -r /var/lib/mysql/*/*.MYI

    3) Start mysql again:
    /etc/rc.d/init.d/mysql start

    Unit Parts Company europa dns
    www.phpnuke.eu www.upcdns.com

  5. #5
    Member koolcards's Avatar
    Join Date
    Oct 2003
    Location
    Tampa, Fl
    Posts
    146

    Default

    Quote Originally Posted by cimi_nl View Post
    /etc/rc.d/init.d/mysql stop

    2) Repair all SQL databases:
    myisamchk -r /var/lib/mysql/*/*.MYI

    3) Start mysql again:
    /etc/rc.d/init.d/mysql start

    Unit Parts Company europa dns
    www.phpnuke.eu www.upcdns.com
    The database server needs to be running to do any of these checks. Log in as 'root' via SSH and:

    Shows you if any need repair:
    myisamchk --check /var/lib/mysql/*/*.MYI

    Then try 'safe-recover' first:
    myisamchk --safe-recover /var/lib/mysql/*/*.MYI

    and, if neither that nor this works:
    myisamchk --recover /var/lib/mysql/*/*.MYI

    Then use the 'force' flag:
    myisamchk --safe-recover --extend-check --force /var/lib/mysql/*/*.MYI

    or:
    myisamchk --recover --extend-check --force /var/lib/mysql/*/*.MYI

  6. #6
    Member
    Join Date
    Feb 2005
    Posts
    312

    Default

    Quote Originally Posted by psrsathish View Post
    Hi,

    Its not possible to repair all the databases in one time. You need to repair each and every database separately.
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -a #analyze
    mysqlcheck --all-databases -o #optimize

  7. #7
    Member
    Join Date
    Oct 2006
    Posts
    191

    Default

    Quote Originally Posted by freedman View Post
    mysqlcheck --all-databases -r #repair
    mysqlcheck --all-databases -a #analyze
    mysqlcheck --all-databases -o #optimize

    This worked great for me. Thanks for posting this!
    Owner/President
    Booyah! Web Hosting
    Great Personal Service
    Experience the Booyah! Difference

  8. #8
    Registered User
    Join Date
    Aug 2009
    Posts
    1

    Default Sql repair tool

    Software Repair My sql is aimed at issuing maximum assistance to Sql users by easily recovering table structure and data, key attributes related to tables like primary or referential key attributes. Views, procedures, triggers and functions are also recovered easily. Plat from which is supported by sql repair tool is the popularly used Windows OS and My Sql supported edition are 4.x and 5.x.

Similar Threads & Tags
Similar threads

  1. /tmp filling up when running repair on database
    By encryption in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-29-2007, 11:08 PM
  2. MySQL Repair bug
    By WildWayz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-20-2005, 11:11 PM
  3. WHM MySQl Repair DB Suggestion
    By stdout in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-28-2005, 05:48 PM
  4. Database Repair
    By jackal in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-30-2003, 08:38 AM
  5. mysql repair problem
    By Ken in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-04-2002, 07:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube