mysql enterprise backup software mysqlbackup failed to start connection

According to the data, the syntax of mysqlbackup backup database is as follows:

mysqlbackup -u<user> -p<password>
--backup_dir=<backup-dir>
backup-and-apply-log

Specifically, when I execute it, I always get an error:

[root@sztech1 ~]# mysqlbackup -u root -p --backup_dir=/backup backup-and-apply-log
MySQL Enterprise Backup version 3.11.0 Linux-3.8.13-16.2.1.el6uek.x86_64-x86_64 [2014/08/26] 
Copyright (c) 2003, 2014, Oracle and/or its affiliates. All Rights Reserved.

mysqlbackup: INFO: Starting with following command line ...
mysqlbackup -u root -p --backup_dir=/backup backup-and-apply-log

mysqlbackup: INFO: 
Enter password: 
141206 01:55:16 mysqlbackup: WARNING: Can not establish connection to mysql server.
Connection open fails with error "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
mysqlbackup: ERROR: Connection initialization error.

mysqlbackup failed with errors!

————————————————————————————————————————

Chongqing Sizhuang IT Technology Learning Center

Chongqing Sizhuang OCP certification training is in hot registration for the weekend class in April. For details, visit the Sizhuang website to consult online customer service! The January OCP (weekend + full-time) class is being taught face-to-face, welcome to contact us for an audition!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325253733&siteId=291194637