Go Back   Technology Forums > Computer Forums > Linux Forum

Forums discussing various aspects of running a LAMP based platform.


Ghost Tables


Reply
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 01-12-2008, 06:12 PM
Junior Member
 
Join Date: Jan 2008
Posts: 1
OldManRiver is on a distinguished road
Default Ghost Tables

All,

I have a MySQL containing 12 databases, one which has 3 tables. I've looked in the docs to determine how to re-index and run maintenance on my databases and it leaves me cold.

Anyway I login at the console and:
Code:
show databases;           ==>> DB shows
use <<dbname>>;           ==>> DB selects
show tables;              ==>> Tables show
select * from <<tbl>>;    ==>> No such table
drop table <<tbl>>;       ==>> Table does not exist
drop database <<dbname>>; ==>> DB not empty drop tables tbl1, tbl2, tbl3
Need to run maintenance on the DB that either restores the DBs and Tables or purges the DB so I can rebuild my DB as several apps work from this table.

Thanks!

OMR
Reply With Quote
  #2 (permalink)  
Old 02-09-2008, 05:48 PM
Administrator
 
Join Date: Dec 2006
Posts: 304
shri has disabled reputation
Default

There is a chance that you might have some unprintable characters or a space embedded into the table names.

Try this ...
Code:
show tables like '% %';
That might reveal if you've accidentally got spaces at the end of the table names or such.
Reply With Quote
Reply





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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
20 Different Tables querys slowing page display cesarcesar Linux Forum 1 02-11-2007 08:35 PM



Advanced Search

All times are GMT -6. The time now is 06:16 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.