Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Backup Database


I Have been using mysql for a while. I downloaded this from mysql site and I created/edit whatever only on the command prompt. My question is, since my database is huge now. I want to copy that database into somewhere else that is safe cause I am going to upgrade my codes, just to prevent if something goes wrong then i can get back my tables and datas. How can I do that?




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
No 'BACKUP TABLE' Nor 'BACKUP DATABASE' In MySQL 6.0.4
I've installed MySQL 6.0.4-alpha and trying to restore some tables found that there's no BACKUP/RESTORE TABLE/DATABASE, it returns 'You have an error in your SQL syntax' and to check the corresponding version manual, but in the documentation area it is only 6.0 (does it apply to 6.0.4?)

What can I do? I've exported from a different database version as text and I will try to insert as text, but how can I make future backup/restore?


View Replies !   View Related
BACKUP DATABASE * TO '/tmp/all.backup'; - DOES NOT WORK
I have troubles with 'BACKUP DATABASE', I thought it was problem of syntax, but have tried even the samples in http://dev.mysql.com/doc/refman/6.0/en/backup-database.html and the command is not recognized

$ mysql --version
mysql Ver 14.14 Distrib 6.0.4-alpha, for pc-linux-gnu (i686) using EditLine wrapper

mysql> BACKUP DATABASE * TO '/tmp/all.backup';
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 'BACKUP DATABASE * TO '/tmp/all.backup'' at line 1

Have tried 'BACKUP TABLE' but does not work either and documentation tells it has been removed...

View Replies !   View Related
How To Backup Database?
I have mysql and a single database.
I'm moving from one host to another.

I was instructed to "backup database from old host and restore in new"

View Replies !   View Related
Database Backup And Synchronization
How do I synchronize MySQL table data of my home PC with latest data from a remote server ?

My home PC is on a very slow internet connection, so implementing replication will cause long time read lock on remote server, which is not desirable.

What are the tools for manual sync of tables?

View Replies !   View Related
Database Backup And Reinstall
I have MySQL (4.0.13) installed on a Windows 2000 Server, interacting happily with ColdFusion MX. However, my hard disk system has collapsed, and I need to back up all data before a virgin OS is installed. My question: how do I back up a database, and reinstall it, using MySQL?

View Replies !   View Related
Automatic Database Backup.
Currently Im using phpMyadmin export feature to create a .sql file that I download as a backup of my database.Is there any way I can automatically get the server to create this backup file for me, and email it to me? I am on linux hosting. There is a button in 'Cpanel' called cron jobs which I think could help but Im not sure how to use them.

View Replies !   View Related
Backup And Transfer Database
I use godaddy as webhoster. I don't know how to backup my database in godaddy. how do i export database into another webhoster like dreamhost .

View Replies !   View Related
Database Backup From Shell
when i use mysqldump command for taking backup of my database from shell , it works , command is

mysqldump databasename > path to store

But i want to take backup of my database at "mysql" prompt. As my hosting company , logs me in direct to mysql prompt VIA putty. I have no access to shell.

I also donot want to use phpmyadmin or other GUI softwares.

View Replies !   View Related
Mysqldump To Backup Database
In MySQL Command Line Client, I want to back up the database (diary) and the table (d2008), so I typed:PHP Code:

 mysqldump diary d2008 > backup.sql 

But I got this error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version...
I am using version 5.0. I have also tried entering passwords, usernames and many other formats described on mysql website and manual, but none seemed to work.

View Replies !   View Related
Mysql Database Backup
i need to backup my MYSQL DB
i found the following at http://dev.mysql.com/doc/refman/5.0/en/mysqldump.html
but i dont realy understand it.

Example: mysqldump --add-drop-table -u dbuser -pPW DBNAME > /tmp/examp-back.sql

1. what is "--add-drop-table"? what does it do? do i need it?
2. is it possible to just stop the DB and then copy the MYSQL DB folder? and how is the restore if i just copy?
3.is there a switch to backup all DB's? like "--alldatabases"?

View Replies !   View Related
Backup A Small Database.
I'm looking to backup a small mysql database. The problem is mysqldump does not exist on the server I'm trying to export the database from.

Does a php script exist which I could use to do essentially the same thing as mysqldump?

View Replies !   View Related
Copy The Backup Database
I had backup the database. When I use the backup database, so I copy it into the c:mysqldata.
When I check the content of the backup database, the content is belong to new database, But now I want use back the old one. so how?

View Replies !   View Related
Cant Backup Database (Greyed Out)
I installed mySQL Administrator, but when I select the backup section to try it out, I can never select anything on the corrosponding tabs, everything is greyed out.

Im still new to databases but im guessing the root user should have access to backups?

View Replies !   View Related
Online Database Backup
(1) Can I use mysql admin gui 5.0 to backup/Restore a databas when some users still connect to a database (Online)

(2) Can I copy the database file directly as a backup when some users still connect to a database (online)

View Replies !   View Related
Complete Database Backup
I want to run a complete backup of my database on one machine and restore it on another, but i don't know what the commands or procedure is, can anyone help please?

There isn't an issue either with it being online/offline, its only a database for a small desktop application.

View Replies !   View Related
Backup And Restore Database
i did a backup of mysql database using the command line utility

mysqldump. this is the command i used "mysqldump -u root -h <hostname> --databases <dbname> > <backupfile>

when i try to restore this using mysql command line client it gives a error after some time the message says that a error has happened on a line number and it states that the table columns does not match the values in the insert statmenet.

i havent done any cahnges to the backup file i just dumped and restored thats all

but when i tried this with mysql administrator gui tool it worked fine.

View Replies !   View Related
Partial Database Backup
I am developing a hosting solution for a popular open source script: on the website users can sign up to get their own "virtual" copy of the script. There is a single database, but own tables for each user. Database tables engine is currently MyISAM, but I am going to change it to InnoDB.

What I need is to let each user download a backup of own data, and restore it when s/he wants. The users shouldn't be able to change other users' tables structure/contents. Also, the backup should be encrypted, so they can't simply check out its contents.

One of the possible solutions is to tar the tables files, encrypt the archive, and that would be the backup. But in case user decrypts the archive, s/he would be able to change table structure and other details, making the system function improperly. Of course, as encryption algorithm strength grows, it becomes harder to encrypt the archive and make the system work incorrectly and/or change other users' info.

Should I just use some strong encryption algorithm and tar the table files? Does InnoDB allow to work with table files of an open database? Or should I lock the required tables for that?

View Replies !   View Related
How Do I Set Up A Regular Backup Of My Database?
I know I can do it manually in phpMyAdmin, but is there a way to set up a scheduled back-up say once a day?

It would be even better if I could set up some sort of cycle where at any one time I'd have 7 versions backed up (Monday-Sunday) and each day that backup would overwrite its old version (that is, on Monday the db backup would be saved over the old Monday backup, and on Tuesday it would be saved over the Tuesday backup).

Just in case something goes unnoticed for a couple days I would have the ability to jump back to a given day within a week.


View Replies !   View Related
Automatic Database Backup
Well i don't really know if this should be posted here, as i use mysql along with php but i believe it is more relevant to mysql forums.

Is there any way of automatically backing up a db, say once a week? Kind of a programmed process lets say..

View Replies !   View Related
How Do I Backup Large Database?
I have a forum with over 130k members and the database is quite large. I'm on a shared server through hostmonster.com

My question is, how do I completely backup this forum database so if anything ever happens, I can restore every single detail.

Is there a way to do so that doesnt require codin or anything?

View Replies !   View Related
Cron Job Backup Of MySQL Database
I would like to backup a mysql database to a text file using a cron job and then have the file mailed to an email address. Can anyone point me in the right direction on doing this type of thing? I dont have much expericnce with CRON.

View Replies !   View Related
How To View Database Backup Records
I have two backups for my database. I want to view the data in each backup. How can I do this? I use EMS SQLmanager for viewing the db that is online.

BTW, following is the reason that I want to view the data. The db is backed up once every three hours using a cron job. Before Monday, each b/u file was about 14MB. Then beginning with one b/u on Monday, each b/u file was about 7MB. I want to view the number of records in each b/u to determine where the difference is.

View Replies !   View Related
Take Backup Of Mysql Database Using Mysqldump
This is my first post to this forum. I'm using MySql 4.1 with .Net 2.0. I've to provide facility to the administrator of my application to take backup of mysql database. Database is on different machine. I'm dynamically creating bat file to run command.
Here is my bat file:-

SET mysqldir=C:Program FilesMySQLMySQL Server 5.0in
SET mysqlpassword=root
SET mysqluser=root
@REM Change to mysqldir
CD %mysqldir%
ECHO 'WAIT .......'
ECHO 'GENERATING TSIPOS DATABASE BACKUP FILES ......'
mysqldump -h -u root -proot tsi_db_dbo > C: sidbodbbackup_Test.sql

TASK:-

I have to take backup of database running on diffrent machine. and to save the script on yet another machine. You can see three machines are involved:-
1) Where Application is running
2) Where Database exists
3) Where to save backup script.

View Replies !   View Related
Scheduled Database Backup Tool
a reliable software that can backup my databases tables and data at set intervals automatically?

I mean, back them up at 6:00 AM then at 12:00PM and again at 6:00PM etc.

View Replies !   View Related
Permissions To Backup My Database Using A Cron Job
permissions to backup my database using a cron Job ....

View Replies !   View Related
Merge The Backup Into The Current Database
I have a little problem and am unsure how to do it. we had posts removed from our site and the only backup is from almost a month ago. The question is, is there a way to merge the backup into the current database without losing all new users, posts, etc. If so could someone maybe explain how this could be done.

View Replies !   View Related
Backup MYSQL Database Remotely
I have a couple of MySQL Databases that store forum data on a number of servers.....and recently had an issue where the serve crashed and i lost a load of data...i want to prevent this from happening in the future and limit the amount of data lost.......

is there a way to backup or mirror the data in my mysql dtabases to a copy which i plan to store locally on my PC, purely for backup purposes?

View Replies !   View Related
Error Trying To Backup My Online Database
I am trying to back up a large database and using command line seems the only way to do it, as other methods just time out.

This is the process I use:

1) Open up cmd
2) Navigate to the bin directory of my mySQL installation in program files
3) Connect to the database by typing in the cmd:
- mysql -h OnlineHostname -u dbuser -p ENTER
- password: ***** ENTER
4) show databases; ENTER
5) use mydatabase; ENTER
6) Database changed

Now that has successfully selected my database. This is where I struggle.

For the next line I have tried many many combinations to back up this database and they have all given an error, saying that i have a syntax error.

Here is an example of what I tried:

mysqldump -u DBusername -pDBpassword -h OnlineHostname DatabaseName > C:/file.sql ;

Can anyone offer any suggestions as I am totally stumped by this. I am using mySQL 5.0.

View Replies !   View Related
Getting The Backup Of Innodb Database From Mysql
is anyone know to get the backup of innodb databace from mysql databaceserver.

View Replies !   View Related
Database Backup Mysqldump.exe From Visual Basic
I've been trying to call mysqldump.exe from Visual Basic with no success, so this time I
will try to do it via SQL commands.

View Replies !   View Related
Using MySQL For Website Database Backup / Restor
so apparently MySQL is widely used for web site backup's of databases.....however i cant seem to figure out how that is supposed to work. i am using joomla, and i have a couple ways of makeing .sql backups, but im not sure how i am to put the database on again, or if need be, on a second website.

am i making sence? i need a way to "import" my database to a website incase it gets 'nuked' or something. is MySQL the right program for this, or not?

View Replies !   View Related
Backup Database Like Mysql Administrator Using Mysqldump
when i backup database using Mysql Administrator,it generate insert clause every 9 records.when i use backup sql file to restore, the speed is very high.

but if i use Mysqldump, it generate only one insert clause with all record.and its restore will cost a very long time.

View Replies !   View Related
Restoring From Backup To New Database With Tally Tables
I've hit a bit of a snag with restoring from a mysql backup.

I've used mysqldump to make the backup:-
mysqldump --opt --skip-add-drop-table --no-create-info --complete-insert -uuser -ppass -hlocalhost databasename > ./sampledump.bak

I've got a new copy of the database that has all the tables created and some new data loaded into it.

Some of the tables act as tallies for pieces of data, such:-
ID (unique), totalamount

How can I restore from the backup so that these table rows are merged rather than replaced?

I.e backup has:-
user1 (ID), 1000 (totalamount)

View Replies !   View Related
Database Backup :: Unknown Object Found
I'm having a database (size about 12GB) that I would like to backup. I have connected using MySQL Administrator and created a backup containing all tables. Everything is saved in a .sql file. However, when I try to restore the database on another machine (with same setup and versions) I get the error message "Unknown object found".

I get no errors ehen I analyse the sql file using the tools in MySQL Administrator. I have used the same procedure before with no errors.

View Replies !   View Related
Backup With Mysqldump Takes Hours, Database Is Not That Big
Hello, I've been having some problems making database backups. I've searched all around and I notice that to most people it only takes a few minutes to backup huge databases (1+ gb).

My database is around 350mb and it can take up to 4-5 hours to backup, which I guess it not normal at all.

My server has a dual Xenon with 4gb ram, using mysql 5.0.27-1.fc6 and php 5.1.6-3.6.fc6. I am using Fedora Core6 with Plesk.

The database is around 350mb, with around 1.1 million rows. To backup I use

mysqldump -uroot -p database > backup.sql

As I said, the above takes hours. I guess it should take minutes?

View Replies !   View Related
How To Backup Database Data Without Direct Server Access
I need to backup a MySQL database (MySQL 4.0). But it is on a
shared-hosting web server and so I don't have direct server access. I
also have no phpMyAdmin installed.

How can I backup the database? I think it is possible with PHP
(version 5.0.2 is installed on the web server) to create a file with
SQL commands which restore the data, but what is the easiest way to do
it?

View Replies !   View Related
How To Restore A Single Table From A Mysqldump Database Backup?
I have taken dump of all database using

mysqldump --all-databases > all_databases.sql

and there are 5 DB's

now one of my DB has got corrupted .So is it possible to replace that Db using the dump file?

View Replies !   View Related
MySQL Administrator Backup Directly To Local Database
In MySQL administrator is there a way to backup directly to my local database from a remote host. I would ideally have this done automatically once a day.

I like to test locally and don't want to have to restore the database locally each time a backing from the remote site is done.

View Replies !   View Related
Which Is The Right Directory To Backup MySQL Database On Linux Opearing System?
Implemented web application using MySQL to maintain inventory of the
office PC's/laptops/Routers/hubs and other stuff, here we are using
MySQL as back-end Database on Linux Operating system. I need to backp
all these Inventory database into CD/Tape/Floppy, which is the right
directory (MySQL database) to backup (incase if the current MySQL
server crashes, then I should be able keep copy of my inventory),

View Replies !   View Related
Restore Database Backup File Using Stored Procedure Call?
I need to restore my database backup file using an stored procedure call....

here the file path is passed as an parameter..

is it possible to do or it can be done by,

Runtime.execute("mysql -u -p databasename < c:/backup.sql");

But if i do by using Runtime process, the database is not restoring..

View Replies !   View Related
Auto-backup Database - Delete Backups Older Than X Days
I am not planning on doing this yet but I need to know from a feasibility point of view.

I know it is possible to set up cron jobs to automatically backup databases on whatever time cycle you want but I have no experience writing them. Does anyone know how you tell it to backup your database with a name and a timestamp, while also deleting backups older than x (7 for example) days?

Also does anyone know how to keep backups secure online? Do you encrypt them? Do you download them to a local server? To your own computer (unless its a very large database)? How do people practically go about making sure backups work, and secure them effectively. And if you do download them to your own local computer, how do you go about doing that? Is it an automatic thing?

I just have all these questions but I have no idea about going about performing backups the most efficient and secure way!


View Replies !   View Related
Backup MySQL Via Port 3306 (which Tool? Automatic Backup?)
i have quite a big database on my website - and i cannot get any backup via system dump or scripts anymore, because my hoster added some memory limits - and scripts/dump can't finish...

so the only way left is to backup my database via connection to port 3306 and tools like mysqlfront.

mysqlfront is unfortunately quite slow and buggy - so do you know any tools which can backup databases via external connection? - it would be great if there are tools which run automatically? (batch/commandline??)
backup with mysql.exe - h -u .... is impossible, too!

View Replies !   View Related
Could Not Connect To The Database, Please Recheck The Settings You Specified. Also Make Sure That A Database With The Name You Specified Already Exists On The Database Server. PhpAdsNew Will Not Create The Database For You, You Must Create It Manually
The error message I get above is the same everytime when trying to install phpAdsnew. I have tried everything. I am hosted through yahoo! and have actually succesfully installed scripts before even though I know nothing about it. Now that I have a "auto-install", it does not work. Yahoo! also offers php-nuke with the auto-install where you just click a few buttons, and I get a similar error stating that it can not conect to the database.

Please can anyone help me and tell me what I am doing wrong?

View Replies !   View Related
Getting A Backup
we started using a doc management system that requires MySQL. Therefore I need to find out the quickest and less error prone way to create a backup of my MySQL databases.

I found some nice resources on the net, but most already start telling me that method x works only for table types a and b, while method y is for table type c only. So first question would be how to find out which kind of table types I have in my database (as they were created by the application, not me).Any other hint on how to get a fool-proof backup (*cough... also easy to restore) would be very much appreciated. A small downtime of the databases (e.g. write lock) is not a problem, as our netapp can make a volume snapshot in matter of seconds.platform

View Replies !   View Related
Backup
Is this the correct command for restoring from the mysqldump backup??

Code:

mysql -u <<username>> -p <<password>> <<database's name>> < backupfile.sql

View Replies !   View Related
Backup Db
I just started using MySQL yesterday, so I really am incompetent about most of it. Where is my db being stored and how do I back it up?

View Replies !   View Related
Backup Using Backup.bat
I'm trying to create a backup.bat file to do my backups. In my test .bat file I have:

mysqldump -u root -p password database >backup.sql

Obviously this command is failing because I am asked for my password each time I run the bat file, then is says it can't find table "password."

View Replies !   View Related
Best Way To Backup
Is there anyway to backup mysql without grinding the site to a halt while it runs?
I've moved it to 3am but it can take a long time and if there are still visitors on the site then they cannot search while its running.

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved