Reply
Can I transfer a MySQL database.
Old 04-26-2004, 07:16 PM Can I transfer a MySQL database.
ecobo's Avatar
Experienced Talker

Posts: 30
Location: Bulgaria
First, I'm entirely new at PHP and MySQL - just started to learn.
I want to develop a web site on my local machine - I have installed Apache, PHP and MySQL. All works fine.
The question is: Can I transfer the site and the database to another machine using FTP, after all is done on mine? For the site I know, but what about the database
__________________
Nikolay Dimitrov, graphic designer and DTP expert
www.e-cobo.com
www.stockaphoto.com
ecobo is offline
Reply With Quote
View Public Profile Visit ecobo's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-26-2004, 08:47 PM
Skilled Talker

Posts: 75
Location: New Jersey, USA
The short answer is absolutely yes! The longer answer deals with how each of the two different OS's store files and filenames. Generally speaking, you can just FTP the DB over without problems. However, I'd caution you against using any strange characters or spaces to name your DB and tables. There may be no problem with them, but why take a chance?

Your best bet, is to create a small 'sample' DB of what you're working on, and FTP it over to your other box. Try it! If you have a problem, we'll see if we can help out!
__________________
http://www.eblush.com/
Where you can get personal, online!
eBlush_Hector is offline
Reply With Quote
View Public Profile Visit eBlush_Hector's homepage!
 
Old 04-27-2004, 01:45 AM
Average Talker

Posts: 15
If you couldn't just transfer database files, you can script your database (script table definitions and table data) and run SQL script on your target server.

I wrote DB scripting tool just last week :-) I did no comprehensive tests but that tool scripts properly table field names, primary, secondary and unique keys, auto_increments, "not null" limitations, default values and I think you will find no bugs at all in table data scripting.

I transferred my site (http://www.mh-sd.com) using my scripting tool without any problems.

My tool was written in Perl under UNIX. It produces .sql files which you will be able to import on any platform.

I could send you this tool by e-mail (i didn't published it because it was not tested, bu I think it could help you).
__________________
Software outsourcing / Free bulletin board, hit counter and banner exchange services
www.mh-sd.com
Masterhard is offline
Reply With Quote
View Public Profile
 
Old 04-27-2004, 03:37 AM
ecobo's Avatar
Experienced Talker

Posts: 30
Location: Bulgaria
Thank you for your comprehensive answers, guys! You've just made my day!
Well, Masterhard, It will be nice if you e-mail me your tool, byt I don't know if I could work with it since I'm just in the beginning with PHP and MySQL My e-mail: info@e-cobo.com
__________________
Nikolay Dimitrov, graphic designer and DTP expert
www.e-cobo.com
www.stockaphoto.com
ecobo is offline
Reply With Quote
View Public Profile Visit ecobo's homepage!
 
Reply     « Reply to Can I transfer a MySQL database.
 

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.87645 seconds with 13 queries