mysql企业备份软件mysqlbackup启动连接失败

根据资料上说,mysqlbackup备份数据库的语法如下:

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

具体我执行的时候,老是报错:

[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!

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

重庆思庄IT技术学习中心

重庆思庄OCP认证培训4月周末班火热报名中,详情访问思庄网站咨询在线客服!1月OCP(周末+脱产)班正在面授,欢迎联系试听!

猜你喜欢

转载自my.oschina.net/u/3761438/blog/1620786