根据资料上说,备份数据库的语法如下:
mysqlbackup -u<user> -p<password>
--_dir=<backup-dir> backup-and-apply-log具体我执行的时候,老是报错:
[root@sztech1 ~]# mysqlbackup -u root -p --backup_dir=/backup backup-and-apply-log
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, and/or its affiliates. All Rights Reserved.mysqlbackup: INFO: Starting with following command ...
mysqlbackup -u root -p --backup_dir=/backup -and-apply-logmysqlbackup: 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/.sock' (2)" mysqlbackup: ERROR: Connection initialization error.failed with errors!
————————————————————————————————————————
重庆思庄IT技术学习中心
重庆思庄OCP认证培训4月周末班火热报名中,详情访问思庄网站咨询在线客服!1月OCP(周末+脱产)班正在面授,欢迎联系试听!