
Пытаюсь восстановить делаю следующее, запускаю:
Код: Выделить всё
# /usr/local/bin/mysqld_safe --skip-grant-tables
Код: Выделить всё
080725 13:55:17 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
Код: Выделить всё
# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.1.20-beta-log FreeBSD port: mysql-server-5.1.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
Код: Выделить всё
grant all privileges on *.* to root@localhost identified by 'мой пароль';
Код: Выделить всё
ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
Судя по надписи он сообщает, что сервер запустился без таблиц привилегий, а значит исполнить команду grant all privileges on...
не может!
Что делать?
