результат не может быть выполнен внимательно смотри переменную результ
Can't connect to local server through socket '/var/lib/mysql/mysql.sock' (2)