Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
myisamchk (was: name 'Szczech ' returns more rows then 'Szczec% ')

myisamchk (was: name 'Szczech ' returns more rows then 'Szczec% ')

2006-06-04       - By Chris Sansom

 Back
Reply:     1     2  

At 14:02 +0300 1/6/06, Remo Tex wrote:
>If you change the character set when running MySQL, you must run
>myisamchk -r -q --set-collation=collation_name  on all MyISAM tables.

Hi

My problem isn't quite the same as the original poster's, but I
suspect the solution may be the same. However, I'm having trouble
running the myisamchk command.

I'm using the Unix Terminal in Mac OS X, with MySQL 5.0.19, and it
won't let me get beyond a certain point in the file structure to find
exactly where the files are. I can 'drill down' as far as the mysql
directory, which has the promisingly-named data directory inside it.
However 'cd data' tells me I don't have permission... but 'sudo cd
data' simply repeats the same directory! I can't seem to get into
data at all.

So... I tried guessing that the file I want - which is for a table
called 'attractions' in the database 'aptguserdb' - might be at
data/aptguserdb/attractions.myd (and .myi for the index), but when I
try the myisamchk command with the full path to there I get 'file
does not exist'.

I'm stumped! How exactly do I go about this?

--
Cheers... Chris
Highway 57 Web Development -- http://highway57.co.uk/

Despite the high cost of living, it remains very popular.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)