Home > Database > Mysql Tutorial > xtrabackup: Error: Please set parameter 'datadir',innoback_MySQL

xtrabackup: Error: Please set parameter 'datadir',innoback_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:31:53
Original
1645 people have browsed it

bitsCN.com

xtrabackup: Error: Please set parameter 'datadir',innobackupex: fatal error: no 'mysqld' group in解决

 

-- 报错:

[root@5.5.25a]#  innobackupex  --rsync --user=backupusertmp --password=backupusertmp  /mysqldata/shared/tmpbackupInnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oyand Percona Inc 2009-2012.  All Rights Reserved.This software is published underthe GNU GENERAL PUBLIC LICENSE Version 2, June 1991.130716 10:38:27  innobackupex: Starting mysql with options:  --password=xxxxxxxx --user='backupusertmp' --unbuffered --130716 10:38:27  innobackupex: Connected to database with mysql child process (pid=6083)130716 10:38:33  innobackupex: Connection to database server closedIMPORTANT: Please check that the backup run completes successfully.           At the end of a successful backup run innobackupex           prints "completed OK!".innobackupex: Using mysql  Ver 14.14 Distrib 5.5.25a, for Linux (x86_64) using readline 5.1innobackupex: Using mysql server version Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.xtrabackup: Error: Please set parameter 'datadir'innobackupex: fatal error: no 'mysqld' group in MySQL optionsinnobackupex: fatal error: OR no 'datadir' option in group 'mysqld' in MySQL options
Copy after login

解决办法: 添加

--defaults-file=/opt/mysql/product/5.5.25a/my.cnf
Copy after login
参数

[root@5.5.25a]#  innobackupex  --rsync --user=backupusertmp --password=backupusertmp --defaults-file=/opt/mysql/product/5.5.25a/my.cnf  /mysqldata/shared/tmpbackupInnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oyand Percona Inc 2009-2012.  All Rights Reserved.This software is published underthe GNU GENERAL PUBLIC LICENSE Version 2, June 1991.130716 10:44:29  innobackupex: Starting mysql with options:  --defaults-file='/opt/mysql/product/5.5.25a/my.cnf' --password=xxxxxxxx --user='backupusertmp' --unbuffered --130716 10:44:29  innobackupex: Connected to database with mysql child process (pid=6595)130716 10:44:35  innobackupex: Connection to database server closedIMPORTANT: Please check that the backup run completes successfully.           At the end of a successful backup run innobackupex           prints "completed OK!".innobackupex: Using mysql  Ver 14.14 Distrib 5.5.25a, for Linux (x86_64) using readline 5.1innobackupex: Using mysql server version Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.innobackupex: Error: Failed to create backup directory /mysqldata/shared/tmpbackup/2013-07-16_10-44-35: No such file or directory at /usr/bin/innobackupex line 371.
Copy after login

看到文件目录不存在,所以mkdir目录

[root@5.5.25a]# mkdir /mysqldata/shared/tmpbackup/[root@5.5.25a]#  innobackupex  --rsync --user=backupusertmp --password=backupusertmp --defaults-file=/opt/mysql/product/5.5.25a/my.cnf  /mysqldata/shared/tmpbackupInnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oyand Percona Inc 2009-2012.  All Rights Reserved.This software is published underthe GNU GENERAL PUBLIC LICENSE Version 2, June 1991.130716 10:46:24  innobackupex: Starting mysql with options:  --defaults-file='/opt/mysql/product/5.5.25a/my.cnf' --password=xxxxxxxx --user='backupusertmp' --unbuffered --130716 10:46:24  innobackupex: Connected to database with mysql child process (pid=6780)130716 10:46:30  innobackupex: Connection to database server closedIMPORTANT: Please check that the backup run completes successfully.           At the end of a successful backup run innobackupex           prints "completed OK!".innobackupex: Using mysql  Ver 14.14 Distrib 5.5.25a, for Linux (x86_64) using readline 5.1innobackupex: Using mysql server version Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Copy after login

 

开始复制进行

.................

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
PHP parsing error: syntax error, unexpected '
From 1970-01-01 08:00:00
0
0
0
Report an error
From 1970-01-01 08:00:00
0
0
0
Error when uploading file format error
From 1970-01-01 08:00:00
0
0
0
html5 - EventSource error
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template