FastNetMon

Sunday 5 September 2010

Как запустить mysqloptimize для всех БД на сервере c ISPManager?

mysqloptimize --all-databases -uroot -p`cat /usr/local/ispmgr/etc/ispmgr.conf | grep Password | awk '{print $2}' | head -n1`

1 comment :

  1. более правильный вариант:
    mysqloptimize --all-databases -uroot -p`cat /usr/local/ispmgr/etc/ispmgr.conf | grep '\<Password' | awk '{print $2}' | head -n1`

    т.к. в ispmgr.conf ещё присутствует строка "ChangePassword"

    ReplyDelete

Note: only a member of this blog may post a comment.