Quantcast
Channel: MySQL Forums - Backup
Viewing all 537 articles
Browse latest View live

SaaS Model Data Backup Method (no replies)

$
0
0
We have pure SaaS Model Application with shared mysql Database. In all tables we are keeping Customer ID column. I want to take backup/dump of customer specific data using customer ID column.

Whether it is possible?

Please provide solution.

Thanks in Advance.

full backup (1 reply)

$
0
0
How to create full database backup from sql?

How to use MySQL Enterprise Backup to restore backup file generated by MySQLDump? (no replies)

$
0
0
I have a .ddl database backup file generated using mysqldump in MySQL Standard Edition v5.5.9. Is it possible for me to use MySQL Enterprise Backup 4.0 to restore the database by using this .ddl file? FYI, my MySQL Standard Edition v5.5.9 installed at a Windows Server 2008 server. While my MySQL Enterprise Backup 4.0 installed at a Windows Server 2012 R2 server. Am currently exploring MySQL Enterprise Edition. Thanks.

MySQLdump with no comments (no replies)

$
0
0
Hi,

I have a question regarding the dumps on MySQL.
We have MySQL installed on one of our servers, where we are having daily backups from all databases.
The backups (dumps) are working fine except for one part, I can't dump the comments on a db (e.g. I have a db named TESTExample with the following procedure:
BEGIN
#This is a test
SELECT 'test' AS result;
END

The line "#this is a test" is not being backup up, when I restore the dump it shows me this:
BEGIN

SELECT 'test' AS result;
END


How can I solve it?
Thank you very much,
Best Regards,
SF

sync Detabase (1 reply)

$
0
0
I have a requirement like this, web application runs in local server and cloud server, i need to sync both cloud and local mysql databases every minute with out losing data.

note: when Internet connection is off in local server, is there any updates in local database and server databases those should sync , when Internet connection is established.

Windows GUI Backup/Restore Tool (1 reply)

$
0
0
Good day,
Not the world's greatest DBA, but please bear with me.
Use MySql on web server to host some forums, photos, websites, for local charities. Have for a dozen years. :)

Migrated off the good ol' Windows 2003 server, now on 2012R2.
Got the latest & greatest MySql instance running now, only to discover that the new console tool (workbench) no longer has backup/restore capabilities.

Old version, for those who aren't familiar... could select tables, data, do scheduled backups to file... all very friendly.
Restore, could be very granular as well, with options to overwrite or not, etc.

I recognize that there is a move towards CLI and scripting again (funny how that pendulum goes back and forth)... but is there a tool out there like the old console?
Or, a concise set of steps, for dummies? :)

it's going to hold a lot more data now, than the old one did... and I need to know I'm saefguarding it, AND, that I can restore selections if I had to.

Even happy to pay a little... but it's volunteer work for charity, so... ;)

thanks everyone!

Mysqldump using Event schedulers (no replies)

$
0
0
I am trying to backup all databases in mysql using my event scheduler
SET GLOBAL event_scheduler = ON;
delimiter |
CREATE EVENT bkuptest
ON SCHEDULE EVERY 1 HOUR
DO BEGIN
mysqldump --uroot --pxxxxx --all-databases --events --result-file="/it/dms/hadoop/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
END |

delimiter ;

I am getting the following errors when i try to execute this




mysql> delimiter |
mysql> CREATE EVENT bkuptest
-> ON SCHEDULE EVERY 1 HOUR
-> DO BEGIN
-> mysqldump --user root --password saa2doc --all-databases --events --result-file="/it/dms/hadoop/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
-> END |
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--user root --password saa2doc --all-databases --events --result-file="/it/dms/h' at line 4
mysql>
mysql> delimiter ;
mysql>


What is correct syntax to use ?

My sqldump in event scheduler (no replies)

$
0
0
I am trying to backup all databases in mysql using my event scheduler
SET GLOBAL event_scheduler = ON;
delimiter |
CREATE EVENT bkuptest
ON SCHEDULE EVERY 1 HOUR
DO BEGIN
mysqldump --uroot --pxxxxx --all-databases --events --result-file="/it/dms/hadoop/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
END |

delimiter ;

I am getting the following errors when i try to execute this




mysql> delimiter |
mysql> CREATE EVENT bkuptest
-> ON SCHEDULE EVERY 1 HOUR
-> DO BEGIN
-> mysqldump --user root --password saa2doc --all-databases --events --result-file="/it/dms/hadoop/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
-> END |
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--user root --password saa2doc --all-databases --events --result-file="/it/dms/h' at line 4
mysql>
mysql> delimiter ;
mysql>


What is correct syntax to use ?

mysqlbackups using event scheduler (no replies)

$
0
0
Hi I am trying to schedule the mysqldump backups of all databases using the event scheduler.
SET GLOBAL event_scheduler = ON;
delimiter |
CREATE EVENT bkuptest
ON SCHEDULE EVERY 1 HOUR
DO BEGIN
mysqldump --uroot --ppasswd --all-databases --events --result-file="/it/dba/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
END |

delimiter ;

I get the following error when i try to execute the script


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--user root --password saa2doc --all-databases --events --result-file="/it/dms/h' at line 4



Can mysqldump be used in even scheduler i see only sqls can be used ?
what is the correct syntax?
Unfortunately I cannot use cron to schedule jobs.

MYSQLDUMP using event scheduler (no replies)

$
0
0
Hi I am trying to schedule the mysqldump backups of all databases using the event scheduler.
SET GLOBAL event_scheduler = ON;
delimiter |
CREATE EVENT bkuptest
ON SCHEDULE EVERY 1 HOUR
DO BEGIN
mysqldump --uroot --ppasswd --all-databases --events --result-file="/it/dba/mysqlbkup/eventschedulertestdev_mysql%datestr%%timestr%.sql";
END |

delimiter ;

I get the following error when i try to execute the script


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--user root --password --all-databases --events --result-file="/it/dms/h' at line 4



Can mysqldump be used in even scheduler i see only sqls can be used ?
what is the correct syntax?
Unfortunately I cannot use cron to schedule jobs.

Not able to create log-bin file (1 reply)

$
0
0
i tried to create log-bin with the following code in my.ini

[mysqld]
log-bin=mysql-bin.0000143
binlog-do-db=new11

but it is not creating mysql-bin.0000143, do guide me on this to achieve the incremental backup..

from MySQLDUMP File Remove USE (1 reply)

$
0
0
I am trying to take records from multiple databases and storing into single database, for that i am taking backup using mysqldump like this ..

mysqldump.exe --user=root --password=root --no-create-db --no-create-info --databases shipdb1 shipdb2 > "D:\dump\six.sql"

then restore.. but in the six.sql(dump file) i am getting USE databasename statement. i got the solution like remove --databases it works fine for single db backup, in multiple db backup it shows "mysqldump: Couldn't find table: "shipdb2"

Please help me in this to resolve this error or any other way to take records from multiple databases and storing into single database.

Thanks in advance

MySQL dump truncating backups at ~18GB - RT database (6 replies)

$
0
0
I'm having a big problem with my MySQL 5.7.15 server running on Windows Server 2012. We use BestPractical's RT for tickets. The specific install I'm having a problem with has a database of about 20GB worth of data. Sometime between December 18th and January 9th, my mysqldump backups started to get truncated. The problem is coming from the file attachment table in the database which is about 19GB. I can't find anything in any logs or anywhere else and I'm running out of ideas. What would cause the dump to just "stop"? How can I debug this?

I did just download the 5.1.17 install, so I will perform the updated this week in hopes that it will help. Thank you.

Enterprise backup to hot backup/restore schema (no replies)

$
0
0
Hi, using mysql 5.7.20 enterprise and mysql enterprise bacukp. Is it possible to backup single innoDB schema online (hot backup) and restore it on a different instance online (hot).

We have consolidated several schemas on the same instance, and implemented replication. As one schema might be corrupted we need to restore a schema backup on the server while the other schemas are online.

thanks

Incremental Backup On Community Edition (1 reply)

$
0
0
Currently I am working on the development stage of a project and using the Community Edition of MySQL. I have been asked to do incremental backups but am 99.9999% sure this is only available on the Enterprise Edition. So sorry this is a bit of a dumb newbie question but could someone confirm I am right or otherwise.

Thank you,

Michael...

Mysql enterprise backup consistency (no replies)

$
0
0
Hi, i'm running mysql enterprise edition 5.7.20 and using Enterprise backup, and i saw that when you backup you have an option to backup-and-apply-log and copy-back-and-apply-log. That makes me ask:
1) If i backup with "backup" command and restore with "copy-back" how consistent is that backup?
2) If i backup with "backup" and restore with "copy-back" does that database starts
3) if backup and copy-back produce a consistent database, why or when do i need the *and-apply-log?

regards,

Quicker way to restore database to a certain point (no replies)

$
0
0
I've created a copy of a production database. This copy will be used to test new changes to the site which will include changes to the database schema, new data, etc.

I want to be able to restore this test database to its initial stage in case the tests fail so I can work on the changes and try again. The database is quite big so I'm trying to avoid mysqldump.

What would be the best way to restore the database to a certain point? I'm using AWS RDS so I have limited access to the data files, because otherwise I was thinking of creating a copy of the data files which I would use if I need to revert the database.

Any suggestions?

MySQL Point-in-Time Recovery (no replies)

File type Microsoft SQL Server Query File (no replies)

$
0
0
I am developing on wamp and want to backup my DB. I tried from the MySQL console but not sure of the syntax. I use windows cmd instead. From
c:\Program Files\MySQL Server 5.7\bin
I created a backup using
mysqldump.exe -uuser -ppassword database > c:\Folder\file.sql
The file.sql appears in the folder, however the file Type says Microsoft SQL Server Query File, not MySQL Server. Am I missing something?

MySQL 8.0: Backup (no replies)

Viewing all 537 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>