db.connect: 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/lib64/grass-6.4.4/bin/db.connect - from package: grass

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

On Debian possible default full paths are:

/usr/lib/grass64/bin/db.connect - from package: grass-core

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