Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Sponsored Reviews   Improve your ranking, submit to directories   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 05-02-2007, 05:28 AM   #1 (permalink)
Inactive
 
Join Date: 04-14-07
Posts: 6
iTrader: 0 / 0%
Latest Blog:
None

yzerfontein is liked by many
mySQL backup

How do you backup a mySQL database? I've got access to phpMYadmin.
yzerfontein is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 05-02-2007, 10:18 AM   #2 (permalink)
Inactive
 
Join Date: 05-02-07
Location: Irvine, CA
Posts: 54
iTrader: 0 / 0%
Latest Blog:
None

NullPointer is liked by many
You can export your data to a file and then Import it back to the database
NullPointer is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-03-2007, 04:41 PM   #3 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
As NullPointer said:

In phpMyAdmin:

Select the database you want to backup, choose the "Export" tab, define what syntax you will use for the backup (SQL) and a name for the file that contains the exported data, then hit GO.

From the command line:

mysqldump -u user -pPaSsWd dbname > outputfile
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-03-2007, 09:07 PM   #4 (permalink)
Contributing Member
 
photocrats.com's Avatar
 
Join Date: 07-25-05
Posts: 431
iTrader: 2 / 100%
Latest Blog:
None

photocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nicephotocrats.com is just really nice
Lightbulb

phpmyadmin is the best way but after exporting the database, always check the file. Sometimes it becomes corrupted file with wired texts.
__________________
Travel Directory | Shopping Directory | Projectdir.com
photocrats.com is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-04-2007, 03:34 PM   #5 (permalink)
Inactive
 
StupidScript's Avatar
 
Join Date: 09-22-06
Location: Los Angeles
Posts: 678
iTrader: 0 / 0%
Latest Blog:
None

StupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really niceStupidScript is just really nice
Quote:
phpmyadmin is the best way
Acknowledging both that there are a few ways to do this and your excellent suggestion to check the resulting file after using phpMyAdmin, I beg to differ with your assessment of which method is 'best'. I've never had a corrupted file (or any restoring issues) using mysqldump, it takes only a second or two to complete, and there's no question about its formatting, as it is drawn from the current installation's configuration and capabilities. IMHO.
StupidScript is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-28-2007, 12:12 AM   #6 (permalink)
Inactive
 
Join Date: 05-06-07
Posts: 85
iTrader: 0 / 0%
Latest Blog:
None

alainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the rough
Send a message via MSN to alainkun
Yes, you pnly need export DB.
If you need do it every days you can try to do a small PHP file:

<?php
$conexion = mysql_connect('localhost', 'user', 'pass');
$result = mysql_query('SHOW DATABASES', $conexion);
while ($row = mysql_fetch_row($result)) {
echo "Backup of ".$row[0]." ... ";
exec("mysqldump --host=localhost --user=user --password=pass --opt --default-character-set=utf-8 --flush-logs ".$row[0]." | bzip2 -c > /your/root/on/server/to/save/DB".$row[0]."-".date('Y.m.d').".sql.bz2");
echo "finish.n";
}
?>

You can add it to a crownjob on your host to do it automaticly every days
alainkun is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Backup marc_gfx Dedicated Servers 12 11-29-2007 11:51 PM
wp-db-backup - Can you send it to me? dcristo Blogging Forum 2 07-20-2007 09:02 PM
MySQL backup ref: INSERT INTO Woody Coding Forum 4 08-10-2006 09:03 AM
How often do you backup your database? Pinyo Web Design Lobby 1 08-20-2004 12:01 PM
MYSQL Database Backup Scripts Limit Coding Forum 6 02-25-2004 04:44 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:39 AM.
© Copyright 2008 V7 Inc