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 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 Complete Forum Thread with Replies

Related Forum Messages:
One Big Database Or A Lot Of Small Ones?
My boss is implementing a system where a lot of different sites will be using the same exact database structure. He has it in his head that things would be simpler with one database shared by hundreds, possibly thousands of sites. I feel like each site deserves it's own database, even if it involves more maintainence.


View Replies !
A Huge Database Or A Lot Of Small Databases
I have a question regarding database performance.

Which of these two designs would be better:

-Having one huge database with 50 tables or so (each table having millions of rows)

or

-Having a lot of databases with the same amount of tables, but each table would have only thousands of rows

*The mysqlserver is running on a P4 3.0 ghz with 1 gb in ram, but I may upgrade my server soon.

*Privileges to create databases is not a problem since I own the server

View Replies !
Small Database, High Load
I have a very heavy mysql database used website. Data is constantly being updated and at peak there is well over 1,000 people online, after it hits the 1,000 mark, the website starts to lag pretty bad.

My database is only small at around 90mb. We have a web server for the files, and a database server for the database. The load on the web server is fine. But the database server is pretty high.

Would replication reduce lag and load? if i was too add a second database server?

View Replies !
Inserting Small Image Directly Into Database
How do you insert an image into a table directly using something like data studio?
I have tried googling it and it seems all the examples are using a language to do it for you. The images are between 2-4k and the table is just an int column followed by a blob column. I just thought the statement would go like

INSERT INTO sometable VALUES (1,'image.jpg');

The web suggests uploading and downloading in PHP (which im using) but im building the data first using data studio then just displaying the table information using PHP.

Before i go into displaying the information on the page i just wanted to make sure the insert query is correct.

View Replies !
Small SQL & Php Webpage Field Database Task
In a webpage, imagine a little section where the user fills in his/her contact details to register. Among this section is a field called "Country". The task is to make this field automatically generate the persons current country of residence. I am told, that the IP ranges and the country to which they belong is in a CSV .xls file. I am also told that the best way to do this is to:

1) Insert the CSV into database table (MySQL).
2) Use php to get that country name onto the website field.

View Replies !
How To Reset Yahoo Small Business MySQL Database
I am a new user of "Yahoo Small Business" web hosting service and I changed
a lot of settings in my "MySQL Database" using "phpMyAdmin" utility during my
learning period. Now, I want to reset my Yahoo Small Business MySQL Database
to default settings or to reinstall it (I want it to be the same as it was newly
activated).

Note: I tried to repair my database with Yahoo's "Database Setup" page and the
message "Database scheduled for repair" appeared for a few days but nothing
happened. And, I can not login to my database using "phpMyAdmin" utility.

If you can help me to reset my "Yahoo Small Business - MySQL Database" I will
be very pleased.

View Replies !
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 !
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 !
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 Replies !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
Permissions To Backup My Database Using A Cron Job
permissions to backup my database using a cron Job ....

View Replies !
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 !
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 !
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 !
Getting The Backup Of Innodb Database From Mysql
is anyone know to get the backup of innodb databace from mysql databaceserver.

View Replies !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !

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