943,487 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 13618
  • MySQL RSS
You are currently viewing page 1 of this multi-page discussion thread
Aug 13th, 2003
0

Backing up a MySQL database

Expand Post »
Certain graphical elements in this forum (such as user's avatars and file attachments) are actually stored in the database instead of in the file system. Is there a way to back these up along with the database? For example, when I make an sql dump file, it obviously doesn't export these elements.
Similar Threads
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Aug 13th, 2003
0
Re: Backing up a MySQL database
(she's using mysqldump)
take a look at
http://www2.yo-linux.com/cgi-bin/man...opic=mysqldump
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
evilmonkey29 is offline Offline
71 posts
since Aug 2002
Dec 7th, 2003
0

Re: Backing up a MySQL database

mysqldump? you know, vBulletin has an integrated backup system that automatically backs up attachements and images. Also, why not use phpMyAdmin? I use it and find it tons helpful in backing things up (although I prefer using vBulletin's method better)

MGM out
MGM
Reputation Points: 10
Solved Threads: 0
Light Poster
MGM is offline Offline
27 posts
since Dec 2003
Dec 8th, 2003
0

Re: Backing up a MySQL database

I've since got it to work via mysqldump. I've found that phpMyAdmin isn't very reliable and often times out when dumping a large database. In addition, I needed a cli command because I wanted to make it into a cron job for automatic nightly database back-up.

Thanks for your help
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Dec 8th, 2003
0

Re: Backing up a MySQL database

i wouldnt suggest using vb's mysql dump feature either


ive used the ssh mysql dumb quite a fewq times just fine

mysqldump --opt -uUSERNAME -pPASSWORD databasname > /path/to/dump.sql

i honestly never had a problem with it


vb also has a specific table backup if you backup the full DB, anything store in the DB will be backuped as well
Team Colleague
Reputation Points: 96
Solved Threads: 21
The Geek Father
Zachery is offline Offline
781 posts
since Nov 2003
Dec 8th, 2003
0

Re: Backing up a MySQL database

Faranth, I use the same command as you without the --opt - what does that do?
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002
Dec 8th, 2003
0

Re: Backing up a MySQL database

yes, in testing my forums on my private server, ive used ssh and ran a command like that, and what cscgal said, whats --opt????

MGM out
MGM
Reputation Points: 10
Solved Threads: 0
Light Poster
MGM is offline Offline
27 posts
since Dec 2003
Dec 31st, 2003
0

Re: Backing up a MySQL database

RTFM ;-) From the man page linked above:

Quote ...
--opt Same as --add-drop-table --add-locks --all
--extended-insert --quick --lock-tables
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jan 21st, 2004
0

Re: Backing up a MySQL database

vb3 lets you store the attachments and avatars on the file system rather then database system. You might want to look into this
Reputation Points: 115
Solved Threads: 2
Junior Poster
floris is offline Offline
152 posts
since Jan 2004
Jan 21st, 2004
0

Re: Backing up a MySQL database

Quote originally posted by cscgal ...
Certain graphical elements in this forum (such as user's avatars and file attachments) are actually stored in the database instead of in the file system.
In any case, I was able to get the problem fixed now. I was having a hard time saving binary representing the graphics, etc into the mysql dump. All fixed Sorry for not notifying everyone. I forgot all about this thread.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is online now Online
13,645 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: Database Design Advice
Next Thread in MySQL Forum Timeline: phpMyAdmin and exporting data.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC