Forum Moderators: coopster & phranque

Message Too Old, No Replies

Can't start mySQL

HELP!!!!! please

         

circuitjump

2:33 pm on Jul 24, 2001 (gmt 0)

10+ Year Member



Hi all,

Got a problem, mySQL won't start. It gives me an error saying
" Can't open user.MYD "
I shutdown the server with mysqladmin -u root -p shutdown.

mysql started
/usr/local/libexec/mysqld: Can't open file: 'user.MYD''. (errno: 145)
mysql ended

this ocurs when using the sysV init script.
if I simply use
#/usr/local/bin/safe_mysqld --user=mysql &
(which is what the init script is doing)
I get the same problem

mysql version is 3.23.38

sugarkane

2:56 pm on Jul 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The problem is that mysql can't find the default databases.

How to fix this will muchly depend on what platform you're running - on Mandrake 7.2 the file /etc/rc.d/init.d/mysql contains various variables you can set, including the location of the data directory.

On my machine, it's at /var/lib/mysql

If you have the locate command available, try doing a 'locate user.MYD' to find out if the file is actually on your machine, and then at least you'll know where to start looking ;)

circuitjump

3:10 pm on Jul 24, 2001 (gmt 0)

10+ Year Member



Got it working!!! :)

I followed your advice, then I also got to doing some other research of my own and well when I shut the server down I think something messed up on the grant tables so what I did is restart the server without the grant tables. Using this command

% safe_mysqld --skip-grant-tables

Then I flushed privileges with this command

% mysqladmin flush-privileges

Well, thanks for the help I would not have known where to start without it. :)