A typical Developer Blog
by Gordon Franke
Icon

How can i check and optimize all Zimbra databases and tables?

1
2
3
4
5
6
7
8
9
10
#!/bin/bash
#
 
source ~zimbra/bin/zmshutil || exit 1
zmsetvars zimbra_home mysql_directory mysql_socket mysql_root_password
 
echo ${mysql_root_password}
 
${mysql_directory}/bin/mysqlcheck --all-databases --optimize -h localhost -P 7306 --protocol=tcp \
        --user=root --password=${mysql_root_password} $*

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Author:

Category: Uncategorized, unix

Tagged: ,

Leave a Reply

CommentLuv badge