?
Solved

Tables exist but don't showup in database

Posted on 2012-09-20
3
Medium Priority
?
324 Views
Last Modified: 2012-09-26
This is very weird!  Tables seem it have been dropped, but they are actually there -- I can query them.   The tables are osdial_list and osdial_lists.
[root@localhost]# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 571299
Server version: 5.1.53-MariaDB Source distribution

This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

MariaDB [osdial]> show tables like 'osdial_l%';
+-------------------------<wbr ></wbr>-----+
| Tables_in_osdial (osdial_l%) |
+-------------------------<wbr ></wbr>-----+
| osdial_lead_filters          |
| osdial_lead_recycle          |
| osdial_live_agents           |
| osdial_live_inbound_agents<wbr ></wbr>   |
| osdial_log                   |
+-------------------------<wbr ></wbr>-----+
5 rows in set (0.00 sec)

MariaDB [osdial]> select list_id from osdial_lists limit 5;
+---------+
| list_id |
+---------+
|      10 |
|      11 |
|     998 |
|     999 |
|    2100 |
+---------+
5 rows in set (0.00 sec)

MariaDB [osdial]> select lead_id from osdial_list limit 5;
+---------+
| lead_id |
+---------+
|    4025 |
|    4026 |
|    4027 |
|    4028 |
|    4030 |
+---------+
5 rows in set (0.00 sec)

Open in new window

I also do not see them when I ls -l /var/lib/mysql/osdial, whether I'm root or mysql, but as you can see, I can query the tables.

I am way confused.  Anyone have any ideas?
0
Comment
Question by:jriggin
  • 2
3 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 38420200
Should they exist or not?
Try a repair on the db.
0
 
LVL 1

Accepted Solution

by:
jriggin earned 0 total points
ID: 38423117
I was going to try fsck on next reboot, but the local admin restored from noon backup before reboot, so everything was lost.  (Happily I dumped the tables I could query but not see, but now the db integrity will require a LOT of work.  Arggg ...

Thanks anyway.
0
 
LVL 1

Author Closing Comment

by:jriggin
ID: 38435942
Situation was overwritten.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 8 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question