LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2003, 03:16 AM   #1
p_nanda2002
LQ Newbie
 
Registered: Oct 2001
Location: chennai,india
Distribution: mandrake 8.0
Posts: 6

Rep: Reputation: 0
Invisible mysql .frm file


Hello everybody,

I am using MYSQL 4/ RHL7.2
I installed mysql and all the files that are required for mysql (frm,myi and myd ) are available there.
After some days Strange thing happened to our server. The mysql server works properly, but no tables found in any databases, even mysql table When i checked the data directory of mysql frm files are not there!!!!!!!!

This is what i got from our server:

shell# cd /var/lib/mysql/my_database
shell# ls -l users.*
-rwxr-xr-x 1 mysql mysql 6908 Jul 16 19:44 users.MYD
-rwxr-xr-x 1 mysql mysql 3072 Jul 16 19:44 users.MYI

But when i ls -l for users.frm alone it is showing. Does this appear strange?
shell# ls -l users.frm
-rwxr-xr-x 1 mysql mysql 9312 May 22 18:40 users.frm

when u access this thru Mysql admin, i can' see any tables showing.

mysql> show tables;
Empty set (0.00 sec)

But actually the tables are present which is shown below.

mysql> select count(*) from users;
+----------+
| count(*) |
+----------+
| 78 |
+----------+
1 row in set (0.00 sec)

the datas are there, but i cant view the datas using select statment in the defined format........
whenever you select from a table i am getting 'o rows selected' even if there are datas


I initially thought it is a mysql issue. But it is not, because when i create a plain file called test.frm in my home directory, I just cannot view it. But i can open the file and edit etc...

I guess this is a virus. Any antivirus software available for cleaning this???

Anybody faced a similar situation and got rid of the error.

PLEASE HELP!!!!!!!!
 
  


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql host.frm xushi Slackware 6 05-19-2005 09:54 AM
Help mysql innodb recovery from .frm pig.2003 SUSE / openSUSE 0 11-10-2004 04:25 AM
Help mysql innodb recovery from .frm pig.2003 Linux - Software 0 11-10-2004 03:35 AM
can't find host.frm with MySQL wheelie_2000 Linux - Software 3 05-06-2004 06:44 PM
Setting up mysql without user.frm?!?! silversky Slackware 1 02-04-2004 04:01 PM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration