LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 09-09-2012, 01:39 AM   #1
dime111
LQ Newbie
 
Registered: Jan 2011
Posts: 29

Rep: Reputation: 0
strange problem with mysql databases not showing


hello
i have strange probelm here
i have several mysql databases which currently are not showing
nor via mysql command lines neither in mysql directory

here is information
mysql is mounted as separate partition in

Quote:
/var/lib/mysql
when i go to that directory and tried to see databses nothing is there

Quote:
root@AQUILA:/var/lib/mysql# ls -la
total 0
root@AQUILA:/var/lib/mysql#
but at the same time as i know some databases name like asterisk
if i try to cd there the directory is there

Quote:
root@AQUILA:/var/lib/mysql# cd asterisk
root@AQUILA:/var/lib/mysql/asterisk# ls
AddressBookEmail.frm callout_calls_OLD.MYI DynConf.MYD Modems.MYD raja_ivr_train_schedule.frm sms_send.frm
AddressBookEmail.MYD callout_log.frm DynConf.MYI Modems.MYI raja_ivr_train_schedule.MYD sms_send.MYD
AddressBookEmail.MYI callout_log.MYD extensions.frm modules.frm raja_ivr_train_schedule.MYI sms_send.MYI
AddressBookFAX.frm callout_log.MYI extensions.MYD
also when i use locate command it shows the path

Quote:
locate admin.frm
/var/lib/mysql/asterisk/admin.frm

so what can be wrong ?permissions ? i guess its the same reason why databases are not showing in mysql command line also as follow

Quote:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
+--------------------+
1 row in set (0.04 sec)
thank you
 
Old 09-09-2012, 03:41 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 601

Rep: Reputation: 78
Quote:
Originally Posted by dime111 View Post
hello
i have strange probelm here
i have several mysql databases which currently are not showing
nor via mysql command lines neither in mysql directory

here is information
mysql is mounted as separate partition in



when i go to that directory and tried to see databses nothing is there



but at the same time as i know some databases name like asterisk
if i try to cd there the directory is there



also when i use locate command it shows the path




so what can be wrong ?permissions ? i guess its the same reason why databases are not showing in mysql command line also as follow



thank you
Note that locate shows the files seen at a specific point in time.
So it might be that it is still listed while if you would update the database now, it wouldn't find them anymore.

I would suggest a filesystem check as root should be able to see all files.

What does this command show:
ls -ld /var/lib/mysql
 
Old 09-10-2012, 01:16 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
mysql is mounted as separate partition in ...
What is the output of the mount command? It might be that you think it's mounted but actually it's not mounted.
 
Old 09-12-2012, 06:00 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 601

Rep: Reputation: 78
Quote:
Originally Posted by Wim Sturkenboom View Post
What is the output of the mount command? It might be that you think it's mounted but actually it's not mounted.
Then it would be strange that he can see the files when using cd to a subdirectory and the filesystem being unmounted.
 
Old 09-12-2012, 01:40 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,780

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by deadeyes View Post
Then it would be strange that he can see the files when using cd to a subdirectory and the filesystem being unmounted.
You're right, missed that
 
Old 09-13-2012, 04:16 AM   #6
deadeyes
Member
 
Registered: Aug 2006
Posts: 601

Rep: Reputation: 78
Quote:
Originally Posted by Wim Sturkenboom View Post
You're right, missed that
That happens to everybody once in a while
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Databases/ MySQL... spoovy General 9 04-26-2010 12:43 AM
LXer: How To Back Up MySQL Databases Without Interrupting MySQL LXer Syndicated Linux News 0 05-14-2007 09:16 AM
Creative soundblaster live 5.1 showing a strange problem in RHEL 4 redhat143 Linux - Enterprise 0 07-11-2006 09:52 AM
restoring mysql databases? and mysql permissions... armegeden Linux - Software 0 03-13-2003 11:04 AM
mysql databases k3v0 Linux - Software 2 12-03-2002 07:41 PM


All times are GMT -5. The time now is 09:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration