When you say you moved the data base I'm assumeing you are meaning you
reinstalled MySQL then moved the db files over to the new install?  Each
data base goes into its own directory.  So the database files for the
database named thedb would be in a subdirectory called thedb of the
directory data .  I am talking from a windows environment maybe its
different on Linux.

root=mysql
sub1=data
sub2=thedb<-------database files for thedb go here

-----Original Message-----
From: Kay Aleksic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 2:10 PM
To: MySQL List (E-mail)
Subject: database recovery (errcode 13)?


Hi list,

I am dealing with my first MySQL server/db, and I ran into some trouble.

The server where the db was located got hacked and I had to reinstall the
whole thing. The old HD is preserved as was and the server got a new HD. I
moved the old db to the new disk and when I try to access it, I get the
following error:

mysql> use thedb;
Can't read dir of './thedb/' (Errcode: 13)
Database changed
mysql> show tables;
ERROR 12: Can't read dir of './thedb/' (Errcode: 13)
mysql>

(RedHat 6.2, MySQL 2.23.37)

How can I recover or fix it?

Thanks in advance for any help.

K. Aleksic


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to