If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Using MyQL tables with my MySQL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-04, 11:23
sunilbl sunilbl is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Using MyQL tables with my MySQL

Hi guys,

I am a bit of a newbie and I am working with a colleague using a MySQL database. He created a table called x. He emailed me the x.frm file, and I copied it into my data folder in MySQL, but when I try Select * From x in the command prompt I get this error:
Error 1016(HY000): Can't open file ('x.InnoDB') (errno:1)

Executing show tables brings up the x as one of the tables in that database, but why cant I see its contents?

Any help would be appreciated.

Thanks
Reply With Quote
  #2 (permalink)  
Old 12-22-04, 04:20
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
It's because you just have the table description (frm file) and no data/index file or table space.

You should recreate your table based on the show create table
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
  #3 (permalink)  
Old 12-22-04, 21:16
sunilbl sunilbl is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Recreating a table

How do I do that?
Reply With Quote
  #4 (permalink)  
Old 12-23-04, 08:54
omiossec omiossec is offline
Registered User
 
Join Date: Jan 2003
Location: Paris, France
Posts: 320
You can ask to have the sql script or your can recreate the table using myisamchk
__________________
Olivier Miossec
--
http://www.lasso-developpeur.net/
--
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On