# innobackupex-1.5.1 --apply-log fail - error 2002

**URL:** <https://forums.percona.com/t/innobackupex-1-5-1-apply-log-fail-error-2002/2142>\
**Category:** Percona XtraBackup\
**Created:** [April 23, 2011, 12:57am UTC](https://forums.percona.com/t/innobackupex-1-5-1-apply-log-fail-error-2002/2142 "2011-04-23T00:57:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![garydubbs](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@garydubbs](https://forums.percona.com/u/garydubbs)\
**Post date:** [April 23, 2011, 12:57am UTC](https://forums.percona.com/t/innobackupex-1-5-1-apply-log-fail-error-2002/2142/1 "2011-04-23T00:57:37Z")

</div>

xtrabackup restore failed  
i have an xtrabackup restore keep failing. this is what i get from xtrabackup:

[root@server xxxxx]# innobackupex-1.5.1 --apply-log /home/xxxxxx/backupInnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy.All Rights Reserved.This software is published under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.IMPORTANT: Please check that the apply-log run completes successfully.At the end of a successful apply-log run innobackupex-1.5.1 prints “completed OK!”.110423 13:07:25 innobackupex-1.5.1: Starting mysql with options: --unbuffered --110423 13:07:25 innobackupex-1.5.1: Connected to database with mysql child process (pid=16040)innobackupex-1.5.1: Error: mysql child process has died: ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)[root@server xxxxx]#

does anyone know why this is failing?

---

<div class="post-metadata">

**Author:** ![xaprb](https://avatars.discourse-cdn.com/v4/letter/x/49beb7/32.png) [@xaprb](https://forums.percona.com/u/xaprb)\
**Post date:** [May 1, 2011, 2:08pm UTC](https://forums.percona.com/t/innobackupex-1-5-1-apply-log-fail-error-2002/2142/2 "2011-05-01T14:08:26Z")

</div>

I have no idea. Can you connect to the server through that socket file from the command line?
