update-mime-database: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/update-mime-database - from package: shared-mime-info

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/update-mime-database - from package: shared-mime-info

You may install the required package with command apt-get install {package}
Error in other languages:
update-mime-database: bevel nie gevind nie
update-mime-database: comandă negăsită
update-mime-database: comando não encontrado
update-mime-database: commande introuvable
update-mime-database: command not found
update-mime-database: käsku ei ole
update-mime-database: không tìm thấy lệnh
update-mime-database: komanda nerasta
update-mime-database: Kommando nicht gefunden.
update-mime-database: kommandot finns inte
update-mime-database: komut yok
update-mime-database: nie znaleziono polecenia
update-mime-database: níor aimsíodh an t-ordú
update-mime-database: no se encontró la orden
update-mime-database: no s'ha trobat l'ordre
update-mime-database: opdracht niet gevonden
update-mime-database: parancs nem található
update-mime-database: perintah tidak ditemukan
update-mime-database: príkaz nenájdený
update-mime-database: příkaz nenalezen
update-mime-database: команда не найдена
update-mime-database: командата не е открита
update-mime-database: 命令找不到
update-mime-database: コマンドが見つかりません