Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



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

Posts: 30
Location: Bulgaria
Trades: 0
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

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ecobo is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-26-2004, 09:47 PM
Skilled Talker

Posts: 75
Location: New Jersey, USA
Trades: 0
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!
__________________

Please login or register to view this content. Registration is FREE

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, 02:45 AM
Average Talker

Posts: 15
Trades: 0
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

Please login or register to view this content. Registration is FREE
Masterhard is offline
Reply With Quote
View Public Profile
 
Old 04-27-2004, 04:37 AM
ecobo's Avatar
Experienced Talker

Posts: 30
Location: Bulgaria
Trades: 0
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

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
ecobo is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Can I transfer a MySQL database.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.29215 seconds with 12 queries