Connecting Tech Pros Worldwide Help | Site Map

"Table Does Not Exist" (But It Does?)

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 14th, 2009, 05:10 PM
Member
 
Join Date: Jul 2007
Location: San Ramon, California
Age: 18
Posts: 63
Default "Table Does Not Exist" (But It Does?)

I copied the files from my "test" database on my old server (MySQL was not running) to my new server ("./mysql/data/test" folder), and after starting the server, SHOW TABLES; shows all of the tables that are supposed to be there, but running a SELECT * FROM `configuration`; (for example) returns "test.configuration does not exist).

I've tried the following repair statement since I'm not too familiar with backing up and restoring data.

(Note that I removed my password after "-p")

Expand|Select|Wrap|Line Numbers
  1. sudo ./bin/mysqlcheck -r test -uroot -p
  2. test.configuration
  3. Error    : Table 'test.configuration' doesn't exist
  4. error    : Corrupt
  5. test.module_navigation_buttons                     OK
  6. test.module_register_fields                        OK
  7. test.module_register_steps                         OK
  8. test.modules
  9. Error    : Table 'test.modules' doesn't exist
  10. error    : Corrupt
  11. test.modules_auto
  12. Error    : Table 'test.modules_auto' doesn't exist
  13. error    : Corrupt
  14. test.modules_streams
  15. Error    : Table 'test.modules_streams' doesn't exist
  16. error    : Corrupt
  17. test.servers
  18. Error    : Table 'test.servers' doesn't exist
  19. error    : Corrupt
  20. test.session_identifiers
  21. note     : The storage engine for the table doesn't support repair
  22. test.session_keys
  23. note     : The storage engine for the table doesn't support repair
  24. test.styles
  25. Error    : Table 'test.styles' doesn't exist
  26. error    : Corrupt
  27. test.users
  28. Error    : Table 'test.users' doesn't exist
  29. error    : Corrupt
  30. test.users_activity
  31. Error    : Table 'test.users_activity' doesn't exist
  32. error    : Corrupt
  33. test.users_logins
  34. Error    : Table 'test.users_logins' doesn't exist
  35. error    : Corrupt
EDIT: The ones that did not properly move are using the FALCON engine. I do have access to the full installation of the old MySQL server. I just can't run it as the Operating System will not run under the new hardware I have on this system.

Also, I believe the files are definitely not corrupt as they ran fine on the system last time I used them. Maybe I need to move a few more files besides the entire test directory, or update something in the mysql table?

MySQL 6.0.8-alpha
Reply
  #2  
Old January 15th, 2009, 07:13 AM
Administrator
 
Join Date: Sep 2006
Posts: 11,941
Default

Use mysqldump for backing up the database.
Reply
  #3  
Old January 15th, 2009, 04:11 PM
Member
 
Join Date: Jul 2007
Location: San Ramon, California
Age: 18
Posts: 63
Default

I'm just wondering as to how I can do that on the old install I have of it (which is 32-bit, not 64-bit)?

Do I copy the new file to the old installation, or is mysqldump not dependent on either?
Reply
  #4  
Old January 16th, 2009, 06:09 AM
Administrator
 
Join Date: Sep 2006
Posts: 11,941
Default

Moving databases by moving files is not the way to go. Check the MySQL site for migration options for your versions and platform.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.