First look at the question:
[Email protected] ~]# Innobackupex--user=root--password=131417/backup
InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, Innobase Oy
and Percona LLC and/or its affiliates 2009-2013. All rights Reserved.
This software is published under
The GNU general public LICENSE Version 2, June 1991.
Get the latest version of Percona Xtrabackup, documentation, and help resources:
http://www.percona.com/xb/p
150712 22:29:59 innobackupex:executing A version check against the server ...
150712 22:29:59 innobackupex:connecting to MySQL server with DSN ' dbi:mysql:;mysql_read_default_group=xtrabackup ' as ' ro OT ' (using Password:yes).
Innobackupex:got a fatal error with the following Stacktrace:at/usr/bin/innobackupex line 3011.
main::mysql_connect (' Abort_on_error ', 1) called At/usr/bin/innobackupex line 1551
innobackupex:Error:Failed to connect to MySQL server:dbi connect ('; Mysql_read_default_group=xtrabackup ', ' root ', ...) Failed:can ' t connect to local MySQL server through sockets '/var/lib/mysql/mysql.sock ' (2) At/usr/bin/innobackupex Line 2 995.
150712 22:29:59 innobackupex:connecting to MySQL server with DSN ' dbi:mysql:;mysql_read_default_group=xtrabackup ' as ' ro OT ' (using Password:yes).
Innobackupex:got a fatal error with the following Stacktrace:at/usr/bin/innobackupex line 3011.
Main::mysql_connect (' Abort_on_error ', 1) called At/usr/bin/innobackupex Line 1570
innobackupex:Error:Failed to connect to MySQL server:dbi connect ('; Mysql_read_default_group=xtrabackup ', ' Root ',...) Failed:can ' t connect to local MySQL server through sockets '/var/lib/mysql/mysql.sock ' (2) At/usr/bin/innobackupex Line 2 995.
--------------------------------------------------------------------------------------------------------------- -----
As can be known from above, Innobackupex is linked up by means of a socket. Find a way to make it without a socket.
Innobackupex--user=root--password=131417--host=127.0.0.1/backup
Xtrabackup link not on MySQL problem