mysql_backup | mysql数据库定时增量和全量备份的shell | Continuous Backup library
kandi X-RAY | mysql_backup Summary
kandi X-RAY | mysql_backup Summary
mysql数据库定时增量和全量备份的shell
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mysql_backup
mysql_backup Key Features
mysql_backup Examples and Code Snippets
Community Discussions
Trending Discussions on mysql_backup
QUESTION
I have the following docker-compose.yml file:
...ANSWER
Answered 2019-Jan-11 at 01:56Can you try to set permissions of mysql_backup
to 1001:0?
something like sudo chown -R 1001:0 ./mysql_backup
or as an alternative but only if the folder is empty sudo chmod 777 ./mysql_backup
regarding to percona Dockerfile mysql user id is 1001 https://github.com/percona/percona-docker/blob/master/percona-server.80/Dockerfile
QUESTION
By default crontab jobs stdout is sent to the email of the crontab user like the crontab file says in the description:
...ANSWER
Answered 2018-Sep-21 at 20:13Redirecting the stderr I got slacktee.sh command not found. So using slacktee.hs as root works but not when root uses it in crontab scheduled job (in a daily scheduled script i use slacktee successfully). Why?
Because the PATH variable for user root
and for user cron
are different.
Instead of just 'slacktee' use a full path, i.e. /usr/local/bin/slacktee
and it should work OK.
QUESTION
I made regularly MySQL backups using Percona's xtrabackup, using a command I found on the net (I am not deep into databases nor in their tools):
...ANSWER
Answered 2018-Jun-18 at 15:36Regarding your questions:
1) how is the normal way to restore the DB from local TAR using --move-back to decompress everything in place and not use extra space on the disk?
You can extract the file and pipe the output to the destination server using the command line below:
# Execute the command where the backup is located
ssh @ "cd && tar -xvv" < backup.tar
Using this method you will avoid the extra space needed to uncompress and copy. Next, you need to prepare the backup, which is your question number 3:
3) being streamed=tar, how do I prepare (if necessary) the tar before restore?
$ xtrabackup --prepare --target-dir=./
Or with innobackupex
:
$ innobackupex --apply-log ./
Note that in the end, if the operation completes with success, you will see the message:
InnoDB: Shutdown completed; log sequence number 9059880
180618 11:05:22 completed OK!
Then MySQL will be ready to start.
More information can be found on these links:
Preparing the backup with xtrabackup
QUESTION
I tried to update MySQL from 5.0.12 to 5.7.18 but unable to start MySQL after upgrade. I performed following steps.
- I downloaded Zip Archive file from MySQL Community Server.
- I extracted the archive file in Temp Folder.
- I renamed the mysql folder to mysql_backup
- I created a new mysql folder and pasted all the newly extracted files in that folder
- I copied data folder from old mysql_backup folder to newly created mysql folder.
- I copied my.ini from old mysql_backup folder to new mysql folder's bin directory.
- I tried to start mysql service but it gives error.
- I removed following line as per this suggestion but still same error.
innodb_additional_mem_pool_size = 2M
There is nothing in error log of mysql. It seems to be my.ini issue. Please help me out.
...ANSWER
Answered 2017-May-08 at 11:33At last I have found the answer using Windows Event Viewer. The issue was with the below line in [mysqld] section which I have commented-out/removed from my.ini file and now MySQL have started:
key_buffer = 16M
After commenting this out this line will be:
#key_buffer = 16M
Please do check your Windows Event Viewer for more clues to the errors in XAMPP Control Panel.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mysql_backup
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page