Доброго времени суток. После сбоя электропитания (и fsck соответственно) вознакла такая беда: мускул упорно не стартует.
Логи:
/var/db/mysql/mashine.err
111027 07:19:41 mysqld started
InnoDB: No valid checkpoint found.
InnoDB: If this error appears when you are creating an InnoDB database,
InnoDB: the problem may be that during an earlier attempt you managed
InnoDB: to create the InnoDB data files, but log file creation failed.
InnoDB: If that is the case, please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.0/en/error-creating-innodb...
тем не менее, ps говорит вот что:
# ps -aux | grep mysql
mysql 42540 0.0 0.5 9892 1340 ?? Is 7:19AM 0:00.07 /bin/sh /usr/loc
mysql 42564 0.0 8.0 69100 19828 ?? I 7:19AM 0:01.04 /usr/local/libex
но стартовый скрипт не завершается до конца (даже через ctrl+C). Пробовал удалять файлы
ib_logfile0, ib_logfile1.ibdata1. Логи после удаления:
111027 07:27:33 mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
111027 7:27:34 InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
111027 7:27:35 InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
111027 7:27:35 InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
стартовый скрипт отрабатывает нормально, процессы в памяти висят:
# ps -aux | grep mysql
mysql 42636 0.0 0.5 9892 1340 ?? Is 7:27AM 0:00.06 /bin/sh /usr/loc
mysql 42660 0.0 5.4 36204 13432 ?? I 7:27AM 0:01.70 /usr/local/libex
пытаемся подключится и получаем по морде розовой птицей обломинго:
# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
#ls -la / | grep tmp
drwxrwxrwx 4 root wheel 512 Oct 27 07:25 tmp
вопрос: куда копать?