mysql_config_pic: 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 Debian possible default full paths are:

/usr/bin/mysql_config_pic - from package: libmysqld-pic

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