mysql企業備份軟件mysqlbackup啓動鏈接失敗

根據資料上說,mysqlbackup備份數據庫的語法以下:mysql

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

具體我執行的時候,總是報錯:數據庫

[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.oracle

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

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.socket

mysqlbackup failed with errors!學習

————————————————————————————————————————網站

重慶思莊IT技術學習中心server

重慶思莊OCP認證培訓4月週末班火熱報名中,詳情訪問思莊網站諮詢在線客服!1月OCP(週末+脫產)班正在面授,歡迎聯繫試聽!blog

相關文章
相關標籤/搜索