9 messages in com.mysql.lists.mysqlDidn't find any fields in table, why?
FromSent OnAttachments
Bing Du29 Jun 2004 11:35 
gerald_clark29 Jun 2004 12:13 
Bing Du29 Jun 2004 12:30 
Victor Pendleton29 Jun 2004 13:28 
Bing Du29 Jun 2004 13:59 
Victor Pendleton29 Jun 2004 14:06 
Bing Du29 Jun 2004 14:12 
Victor Pendleton29 Jun 2004 14:16 
Bing Du29 Jun 2004 14:40 
Subject:Didn't find any fields in table, why?
From:Bing Du (bd@iastate.edu)
Date:06/29/2004 11:35:08 AM
List:com.mysql.lists.mysql

I have two mysql servers as shown below:

MySQL server A: version 3.23.58, database: mydb, table: mytable MySQL server B: version 5.0.0-alpha-standard-log

I want the server B to have the exact same database and table as those on the server A. So, on server B, I manually created a database called 'mydb'. Then I copied three files mytable.frm, mytable.MYD, mytable.MYI from server A's /var/lib/mysql/mydb/ directory to server B's /var/lib/mysql/mydb directory.

Now on server B, when running the command 'mysql -h localhost -u root -p mydb', I got the following messages back:

---- Didn't find any fields in table 'mytable'

----

By the way, I did restart the mysql server on server B after copying files.

Does that mean version 3.* can not read version 5.* tables? How should I set up the same database and tables on another server just by copying files because I have a lot tables that need to be moved over?

Thanks in advance for any help.

Bing