PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 13th, 2000, 09:41 PM
TechTalk TechTalk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 9 TechTalk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How would I go about doing this? Is there a script out there that will build a .sql file from it so that I can easily rebuild the database or os there some way to get my entire db off the server?

Thanks in advance,
~Chris http://www.extremeforums.com

------------------
"Reality is for people who lack imagination"

Reply With Quote
  #2  
Old June 13th, 2000, 10:01 PM
gpolins gpolins is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 32 gpolins User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
On a similar issue - is there a way to transfer a MySQL database from one computer to another? From my experience I haven't heard of a way but if anyone out there has...

Reply With Quote
  #3  
Old June 13th, 2000, 10:55 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
For backing up entire MySQL databases' take a look at information on 'mysqldump'.

mysqldump [options] database [table]

Outputs the contents of the given database (or table within a database) as a series of
ANSI SQL commands.

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #4  
Old June 13th, 2000, 10:59 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I do believe that the same could apply to the second question here.

When you perform the dump, you would then
get a long string of text data, which you could then later execute in a number of formats.

easily turn it into a php file, or whathaveya'

On a side note, mySQL also support incremental backups via: -- log-update option.

This is used by launching you mysqld database server with the above option.

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #5  
Old June 13th, 2000, 11:41 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
The fastest way to do a backup.. is to grab a copy of phpMyAdmin from php wizards.

Use the dump schema options on the main
database page, if you want the database structure and data, select the option and
if you want it in an SQL file, check the
"send" option..

It's fast and simple, and setting the phpMyAdmin up is really very easy, one small
file, upload it (if necessary) and then run it.

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #6  
Old June 14th, 2000, 12:48 AM
TechTalk TechTalk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 9 TechTalk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Beautiful! I have had myphpadmin all along and did not know it could do this. Exactly what I wanted

Thanks for your time.

Chris Miller
P.S Feel free to stop by my php forum anytime and share some knowledge http://www.extremeforums.com

------------------
"Reality is for people who lack imagination"

Reply With Quote
  #7  
Old June 14th, 2000, 02:31 PM
Robert_J_Sherman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by TechTalk:
Beautiful! I have had myphpadmin all along and did not know it could do this. Exactly what I wanted

Thanks for your time.

Chris Miller
P.S Feel free to stop by my php forum anytime and share some knowledge http://www.extremeforums.com
[/quote]

Eh, honestly, I am building my knowledge on this subject as I go along.. you asked a good question, and it just happened to be one that I had been curious about, and was reading on the subject at the time.

I took a shot in the dark on the phpMyAdmin, and tried it before I posted it, that's why I had several responses.

I will stop in and check out the site..

Thanks.

------------------
SnR Graphics,
Low Cost Hosting and Web Development.

Reply With Quote
  #8  
Old June 16th, 2000, 09:10 PM
'tantrum 'tantrum is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Posts: 79 'tantrum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Using PhpMyAdmin for large databases/tables with lots of records really is a pain in the ***.

Reply With Quote
  #9  
Old June 16th, 2000, 10:36 PM
firepages's Avatar
firepages firepages is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2000
Location: Perth West Australia
Posts: 757 firepages User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 18 m 32 sec
Reputation Power: 14
tantrum - thats cos phpMyAdmin has to read from the table its structure, format, field types index's etc - If you have very large tables - you are better off making your own admin page specific to that table - its heaps faster - even my dodgy admin routines are faster than phpMyAdmin for individual tables.

------------------
Simon Wheeler
FirePages -DHTML/PHP/MySQL

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > Backing up a MySQL database......

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap