image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old December 5th, 2002, 08:31 PM
Registered User
 
Join Date: Dec 2002
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Count_Rugen is on a distinguished road
mysql query

I installed mysql using the module downloaded from entropy.ch which is linked from the Apple developers page.
Using mysql in the terminal, when databases and tables etc.. are created, where are they then located?
Reason being, i want to copy an already existing database to my mac. I tried copying all .frm, .MYI and .MYD file in the "data" folder to;
usr/local/mysql/<database>/data
but this is not correct.
I would appreciate any advice.
Thanks
Reply With Quote
  #2  
Old December 6th, 2002, 07:40 AM
Registered User
 
Join Date: Oct 2002
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
jwalk76 is on a distinguished road
mysqldump old.database > some.text.file

mysql new.database < some.text.file

there are many flags that you can throw to mysqldump so that it only dumps table creation info or only dumps data and not table creation info... read the man page.
Reply With Quote
  #3  
Old December 6th, 2002, 12:16 PM
Registered User
 
Join Date: Jun 2002
Posts: 349
Thanks: 0
Thanked 0 Times in 0 Posts
cabbage is on a distinguished road
I use phpMyAdmin to export the sql and then insert it into a new database. jwalk76 is correct too.
__________________
~Cabbage
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL install problems svenrg Unix & X11 2 November 21st, 2002 11:08 PM
MySQL & StartupItems Problem turbine Unix & X11 2 September 27th, 2002 11:44 PM


All times are GMT -5. The time now is 04:20 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.