HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- mysql-cluster + mysqldump
Operating System - Linux
1825576
Members
1862
Online
109682
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2007 09:59 AM
12-14-2007 09:59 AM
mysql-cluster + mysqldump
Hi there
My task is to perform backup on mysql-cluster from managemenet node using mysqldump.
START BACKUP; is working fine but we need to be sure thet we have sql file as well as it's more convinient etc.
I was trying to use this script:
#!/bin/sh
MAILTO=xxx@xxx.com
ndb_mgm -e "ENTER SINGLE USER MODE 4"; sleep 10;
mysqldump -u xxx -p --password=xxx --lock-tables xxx_production > backup-xxx_production.sql;
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm –e "START BACKUP WAIT COMPLETED"
But it gives me an empty file.
Does enybody know why?
Best Regards
Peter
My task is to perform backup on mysql-cluster from managemenet node using mysqldump.
START BACKUP; is working fine but we need to be sure thet we have sql file as well as it's more convinient etc.
I was trying to use this script:
#!/bin/sh
MAILTO=xxx@xxx.com
ndb_mgm -e "ENTER SINGLE USER MODE 4"; sleep 10;
mysqldump -u xxx -p --password=xxx --lock-tables xxx_production > backup-xxx_production.sql;
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm –e "START BACKUP WAIT COMPLETED"
But it gives me an empty file.
Does enybody know why?
Best Regards
Peter
Jesus is the King
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2007 03:13 AM
12-15-2007 03:13 AM
Re: mysql-cluster + mysqldump
Sorted !
You have to ganerate keys to make the script login to the servers without password.
Best Regards
Peter
#!/bin/sh
MAILTO=me@mydomain.com
ndb_mgm -e "ENTER SINGLE USER MODE 4"; sleep 10;
ssh -p 22 user@server 'mysqldump -u root -p --password=xxx --lock-tables dbname_production > /home/username/backup/backup-dbname_production.sql'
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm -e "ENTER SINGLE USER MODE 5"; sleep 10;
ssh -p 22 user@server1 'mysqldump -u root -p --password=xxx --lock-tables dbnaem_production > /home/username/backup/backup-dbname_production.sql'
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm -e "START BACKUP WAIT COMPLETED"
You have to ganerate keys to make the script login to the servers without password.
Best Regards
Peter
#!/bin/sh
MAILTO=me@mydomain.com
ndb_mgm -e "ENTER SINGLE USER MODE 4"; sleep 10;
ssh -p 22 user@server 'mysqldump -u root -p --password=xxx --lock-tables dbname_production > /home/username/backup/backup-dbname_production.sql'
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm -e "ENTER SINGLE USER MODE 5"; sleep 10;
ssh -p 22 user@server1 'mysqldump -u root -p --password=xxx --lock-tables dbnaem_production > /home/username/backup/backup-dbname_production.sql'
ndb_mgm -e "EXIT SINGLE USER MODE";
ndb_mgm -e "START BACKUP WAIT COMPLETED"
Jesus is the King
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP