How repair ALL database tables:

Here the command for repair, alalyze or optimze all database talbes in server.


# mysqlcheck -u root -p --auto-repair --check --optimize --all-databases

Below commands are also do the same without mysql root password:

For Repair:

# mysqlcheck --all-databases -r

For Analyze:

# mysqlcheck --all-databases -a

For optimize:

# mysqlcheck --all-databases -o

cheers!!!

Comments

Popular posts from this blog

Resolved: DOCKER: Error response from daemon: Could not attach to network / rpc error: code = 7 desc = network not manually attachable.

yum failed 6 times. Cannot continue!

unexpectedly shrunk window (repaired) in dmesg log - TCP Peer