* [Comm] mysql in p6
@ 2012-02-28 18:32 Andrii Dobrovol`s`kii
2012-02-28 19:57 ` Anton Gorlov
2012-02-28 20:23 ` Michael Shigorin
0 siblings, 2 replies; 13+ messages in thread
From: Andrii Dobrovol`s`kii @ 2012-02-28 18:32 UTC (permalink / raw)
To: ALT Linux Community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
Вылезла ещё одна проблемка. после обновления с р5 на р6 не
работает мускуль.
При старте валится с забыванием лок-файла.
В списке изменений ничего наводящего на мысли не нашел.
service mysqld status
mysqld is dead, but subsystem is locked
service mysqld start
Installing all prepared tables
120228 16:59:00 [Warning] '--log' is deprecated and will be
removed in a future release. Please use
''--general_log'/'--general_log_file'' instead.
120228 16:59:00 [Note] Plugin 'InnoDB' is disabled.
ERROR: 1034 Incorrect key file for table 'db'; try to repair it
120228 16:59:00 [ERROR] Aborting
120228 16:59:00 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
Не понимаю, чего оно считает, что база сломана. Кто что может
посоветовать?
- --
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iF4EAREIAAYFAk9NHcEACgkQpBPgR3404hPfSQD+PwEXnGR32/68CZ6wVEJ3KsIA
n3tIUQMm1Wo+NSnmP2cA/3TduT5pwJCVttJwx0C46Iyg7SKBB3hFNRWgxM+sepjm
=mjfC
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-28 18:32 [Comm] mysql in p6 Andrii Dobrovol`s`kii
@ 2012-02-28 19:57 ` Anton Gorlov
2012-02-29 9:19 ` Андрей Черепанов
2012-02-28 20:23 ` Michael Shigorin
1 sibling, 1 reply; 13+ messages in thread
From: Anton Gorlov @ 2012-02-28 19:57 UTC (permalink / raw)
To: ALT Linux Community general discussions
28.02.2012 22:32, Andrii Dobrovol`s`kii пишет:
> Вылезла ещё одна проблемка. после обновления с р5 на р6 не
> работает мускуль.
> ERROR: 1034 Incorrect key file for table 'db'; try to repair it
> 120228 16:59:00 [ERROR] Aborting
> 120228 16:59:00 [Note] /usr/sbin/mysqld: Shutdown complete
> Installation of system tables failed!
> Не понимаю, чего оно считает, что база сломана. Кто что может
> посоветовать?
mysql_upgrade запускали после обновления? ну и в любом случае перед
обновлением СУБД _всегда_ нужно перед тем как иметь готовый дамп под руками
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-28 18:32 [Comm] mysql in p6 Andrii Dobrovol`s`kii
2012-02-28 19:57 ` Anton Gorlov
@ 2012-02-28 20:23 ` Michael Shigorin
1 sibling, 0 replies; 13+ messages in thread
From: Michael Shigorin @ 2012-02-28 20:23 UTC (permalink / raw)
To: ALT Linux Community
On Tue, Feb 28, 2012 at 08:32:34PM +0200, Andrii Dobrovol`s`kii wrote:
> 120228 16:59:00 [Note] Plugin 'InnoDB' is disabled.
> ERROR: 1034 Incorrect key file for table 'db'; try to repair it
> 120228 16:59:00 [ERROR] Aborting
db -- это InnoDB или MyISAM? Если первое, надо включить плагин:
http://git.altlinux.org/people/mike/packages/?p=MySQL.git;a=commitdiff;h=5c9f7fe2cf1965a9b8d641b9eaa93df23a24dd03
(исправлено в 5.1.60-alt2 и выше, могу сделать бэкпорт и если
подтвердится -- залить в t6 да предложить в p6)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-28 19:57 ` Anton Gorlov
@ 2012-02-29 9:19 ` Андрей Черепанов
2012-02-29 11:43 ` adobrovolskii
0 siblings, 1 reply; 13+ messages in thread
From: Андрей Черепанов @ 2012-02-29 9:19 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: Text/Plain, Size: 817 bytes --]
28 февраля 2012 Anton Gorlov написал:
> 28.02.2012 22:32, Andrii Dobrovol`s`kii пишет:
> > Вылезла ещё одна проблемка. после обновления с р5 на р6 не
> > работает мускуль.
> > ERROR: 1034 Incorrect key file for table 'db'; try to repair it
> > 120228 16:59:00 [ERROR] Aborting
> > 120228 16:59:00 [Note] /usr/sbin/mysqld: Shutdown complete
> > Installation of system tables failed!
> > Не понимаю, чего оно считает, что база сломана. Кто что может
> > посоветовать?
>
> mysql_upgrade запускали после обновления? ну и в любом случае перед
> обновлением СУБД _всегда_ нужно перед тем как иметь готовый дамп под руками
+1
Столкнулся с этим при переводе forum.altlinux.org на p6. Собственно, добавил
тогда же на www.altlinux.org/Update (1.7 Если вы используете MySQL…)
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 9:19 ` Андрей Черепанов
@ 2012-02-29 11:43 ` adobrovolskii
2012-02-29 11:53 ` adobrovolskii
0 siblings, 1 reply; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 11:43 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Wed, Feb 29, 2012 at 11:19 AM, Андрей Черепанов <cas@altlinux.ru> wrote:
> 28 февраля 2012 Anton Gorlov написал:
>> 28.02.2012 22:32, Andrii Dobrovol`s`kii пишет:
>> > Вылезла ещё одна проблемка. после обновления с р5 на р6 не
>> > работает мускуль.
>> > ERROR: 1034 Incorrect key file for table 'db'; try to repair it
>> > 120228 16:59:00 [ERROR] Aborting
>> > 120228 16:59:00 [Note] /usr/sbin/mysqld: Shutdown complete
>> > Installation of system tables failed!
>> > Не понимаю, чего оно считает, что база сломана. Кто что может
>> > посоветовать?
>>
>> mysql_upgrade запускали после обновления? ну и в любом случае перед
>> обновлением СУБД _всегда_ нужно перед тем как иметь готовый дамп под руками
> +1
> Столкнулся с этим при переводе forum.altlinux.org на p6. Собственно, добавил
> тогда же на www.altlinux.org/Update (1.7 Если вы используете MySQL...)
>
Увы. Демон не стартует... Как выполнить mysql_upgrade? Там же не
написано, что в процессе обновления демон ляжет и уже не поднимется...
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 11:43 ` adobrovolskii
@ 2012-02-29 11:53 ` adobrovolskii
2012-02-29 12:19 ` Андрей Черепанов
0 siblings, 1 reply; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 11:53 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Wed, Feb 29, 2012 at 1:43 PM, adobrovolskii <adobrovolskii@gmail.com> wrote:
>>> mysql_upgrade запускали после обновления? ну и в любом случае перед
>>> обновлением СУБД _всегда_ нужно перед тем как иметь готовый дамп под руками
>> +1
>> Столкнулся с этим при переводе forum.altlinux.org на p6. Собственно, добавил
>> тогда же на www.altlinux.org/Update (1.7 Если вы используете MySQL...)
>>
> Увы. Демон не стартует... Как выполнить mysql_upgrade? Там же не
> написано, что в процессе обновления демон ляжет и уже не поднимется...
service mysqld start
Installing all prepared tables
120229 13:50:08 [Warning] '--log' is deprecated and will be removed in
a future release. Please use ''--general_log'/'--general_log_file''
instead.
120229 13:50:08 [Note] Plugin 'InnoDB' is disabled.
ERROR: 1034 Incorrect key file for table 'db'; try to repair it
120229 13:50:08 [ERROR] Aborting
120229 13:50:08 [Note] /usr/sbin/mysqld: Shutdown complete
Installation of system tables failed!
[mysqld]
chroot=/var/lib/mysql
datadir=/db
ignore-builtin-innodb
plugin-load=innodb=ha_innodb_plugin.so
log=/log/queries
pid-file=/mysqld.pid
skip-external-locking
socket=/mysql.sock
tmpdir=/tmp
user=mysql
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 11:53 ` adobrovolskii
@ 2012-02-29 12:19 ` Андрей Черепанов
2012-02-29 13:36 ` adobrovolskii
0 siblings, 1 reply; 13+ messages in thread
From: Андрей Черепанов @ 2012-02-29 12:19 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: Text/Plain, Size: 1455 bytes --]
29 февраля 2012 adobrovolskii написал:
> On Wed, Feb 29, 2012 at 1:43 PM, adobrovolskii <adobrovolskii@gmail.com>
wrote:
> >>> mysql_upgrade запускали после обновления? ну и в любом случае перед
> >>> обновлением СУБД _всегда_ нужно перед тем как иметь готовый дамп под
> >>> руками
> >>
> >> +1
> >> Столкнулся с этим при переводе forum.altlinux.org на p6. Собственно,
> >> добавил тогда же на www.altlinux.org/Update (1.7 Если вы используете
> >> MySQL...)
> >
> > Увы. Демон не стартует... Как выполнить mysql_upgrade? Там же не
> > написано, что в процессе обновления демон ляжет и уже не поднимется...
>
> service mysqld start
> Installing all prepared tables
> 120229 13:50:08 [Warning] '--log' is deprecated and will be removed in
> a future release. Please use ''--general_log'/'--general_log_file''
> instead.
> 120229 13:50:08 [Note] Plugin 'InnoDB' is disabled.
> ERROR: 1034 Incorrect key file for table 'db'; try to repair it
> 120229 13:50:08 [ERROR] Aborting
>
> 120229 13:50:08 [Note] /usr/sbin/mysqld: Shutdown complete
>
> Installation of system tables failed!
>
> [mysqld]
> chroot=/var/lib/mysql
> datadir=/db
> ignore-builtin-innodb
> plugin-load=innodb=ha_innodb_plugin.so
> log=/log/queries
> pid-file=/mysqld.pid
> skip-external-locking
> socket=/mysql.sock
> tmpdir=/tmp
> user=mysql
Попробуйте
http://www.ovaistariq.net/490/a-step-by-step-guide-to-upgrading-to-mysql-5-5/
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 12:19 ` Андрей Черепанов
@ 2012-02-29 13:36 ` adobrovolskii
2012-02-29 14:17 ` adobrovolskii
2012-02-29 14:19 ` Андрей Черепанов
0 siblings, 2 replies; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 13:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Wed, Feb 29, 2012 at 2:19 PM, Андрей Черепанов <cas@altlinux.ru> wrote:
> Попробуйте
>
> http://www.ovaistariq.net/490/a-step-by-step-guide-to-upgrading-to-mysql-5-5/
>
Что именно предлагается попробовать?
Я запустил сервер с --skip-grant-tables Он стартанул. Теперь если посмотреть
mysql> SHOW PLUGINS;
+------------+--------+----------------+---------------------+---------+
| Name | Status | Type | Library | License |
+------------+--------+----------------+---------------------+---------+
| binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
| partition | ACTIVE | STORAGE ENGINE | NULL | GPL |
| ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL |
| BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL |
| CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
| InnoDB | ACTIVE | STORAGE ENGINE | ha_innodb_plugin.so | GPL |
+------------+--------+----------------+---------------------+---------+
9 rows in set (0.00 sec)
Почему активны все а указатель есть только на принудительно
загруженный плагин? Потому что остальные встроенные?
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 13:36 ` adobrovolskii
@ 2012-02-29 14:17 ` adobrovolskii
2012-02-29 14:19 ` Андрей Черепанов
1 sibling, 0 replies; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 14:17 UTC (permalink / raw)
To: ALT Linux Community general discussions
Заставил демона запуститься. Вижу все базы и таблицы в них.
Попытка сделать дамп уперлась в таблицу 'columns_priv' базы mysql.
mysqldump --all-databases --quick --lock-tables --extended-insert >
backupalldb.sql
mysqldump: Got error: 1034: Incorrect key file for table
'columns_priv'; try to repair it when using LOCK TABLES
Подскажите объезд...
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 13:36 ` adobrovolskii
2012-02-29 14:17 ` adobrovolskii
@ 2012-02-29 14:19 ` Андрей Черепанов
2012-02-29 14:45 ` adobrovolskii
1 sibling, 1 reply; 13+ messages in thread
From: Андрей Черепанов @ 2012-02-29 14:19 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: Text/Plain, Size: 1605 bytes --]
29 февраля 2012 adobrovolskii написал:
> On Wed, Feb 29, 2012 at 2:19 PM, Андрей Черепанов <cas@altlinux.ru> wrote:
> > Попробуйте
> >
> > http://www.ovaistariq.net/490/a-step-by-step-guide-to-upgrading-to-mysql-
> > 5-5/
>
> Что именно предлагается попробовать?
> Я запустил сервер с --skip-grant-tables Он стартанул. Теперь если
> посмотреть
>
> mysql> SHOW PLUGINS;
> +------------+--------+----------------+---------------------+---------+
>
> | Name | Status | Type | Library | License |
>
> +------------+--------+----------------+---------------------+---------+
>
> | binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | partition | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
> | InnoDB | ACTIVE | STORAGE ENGINE | ha_innodb_plugin.so | GPL |
>
> +------------+--------+----------------+---------------------+---------+
> 9 rows in set (0.00 sec)
>
> Почему активны все а указатель есть только на принудительно
> загруженный плагин? Потому что остальные встроенные?
Потому что нет поддержки. mysql_upgrade запустили?
--
Андрей Черепанов
ALT Linux
cas@altlinux.ru
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 14:19 ` Андрей Черепанов
@ 2012-02-29 14:45 ` adobrovolskii
2012-02-29 15:18 ` adobrovolskii
2012-03-02 7:03 ` Sergey
0 siblings, 2 replies; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 14:45 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Wed, Feb 29, 2012 at 4:19 PM, Андрей Черепанов <cas@altlinux.ru> wrote:
> 29 февраля 2012 adobrovolskii написал:
>> On Wed, Feb 29, 2012 at 2:19 PM, Андрей Черепанов <cas@altlinux.ru> wrote:
>> > Попробуйте
>> >
>> > http://www.ovaistariq.net/490/a-step-by-step-guide-to-upgrading-to-mysql-
>> > 5-5/
>>
>> Что именно предлагается попробовать?
>> Я запустил сервер с --skip-grant-tables Он стартанул. Теперь если
>> посмотреть
>>
>> mysql> SHOW PLUGINS;
>> +------------+--------+----------------+---------------------+---------+
>>
>> | Name | Status | Type | Library | License |
>>
>> +------------+--------+----------------+---------------------+---------+
>>
>> | binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | partition | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |
>> | InnoDB | ACTIVE | STORAGE ENGINE | ha_innodb_plugin.so | GPL |
>>
>> +------------+--------+----------------+---------------------+---------+
>> 9 rows in set (0.00 sec)
>>
>> Почему активны все а указатель есть только на принудительно
>> загруженный плагин? Потому что остальные встроенные?
> Потому что нет поддержки. mysql_upgrade запустили?
>
Пытался. Он обламывается.
В интерактивном режиме таблица не лечится почему-то...
mysql> REPAIR TABLE columns_priv
-> ;
+--------------------+--------+----------+---------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text
|
+--------------------+--------+----------+---------------------------------------------------------------+
| mysql.columns_priv | repair | Error | Incorrect key file for
table 'columns_priv'; try to repair it |
| mysql.columns_priv | repair | error | Corrupt
|
+--------------------+--------+----------+---------------------------------------------------------------+
2 rows in set (0.01 sec)
mysql> CHECK TABLE columns_priv;
+--------------------+-------+----------+---------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text
|
+--------------------+-------+----------+---------------------------------------------------------------+
| mysql.columns_priv | check | Error | Incorrect key file for table
'columns_priv'; try to repair it |
| mysql.columns_priv | check | error | Corrupt
|
+--------------------+-------+----------+---------------------------------------------------------------+
2 rows in set (0.01 sec)
# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck with default connection arguments
Running 'mysqlcheck with default connection arguments
......
Repairing tables
mysql.columns_priv
Error : Incorrect key file for table 'columns_priv'; try to repair it
error : Corrupt
mysql.db
Error : Incorrect key file for table 'db'; try to repair it
error : Corrupt
mysql.func
Error : Incorrect key file for table 'func'; try to repair it
error : Corrupt
mysql.host
Error : Incorrect key file for table 'host'; try to repair it
error : Corrupt
mysql.tables_priv
Error : Incorrect key file for table 'tables_priv'; try to repair it
error : Corrupt
mysql.user
Error : Incorrect key file for table 'user'; try to repair it
error : Corrupt
ra.cache_page
Error : Incorrect key file for table 'cache_page'; try to repair it
error : Corrupt
ra.node
Error : Incorrect key file for table 'node'; try to repair it
error : Corrupt
ra.term_synonym
Error : Incorrect key file for table 'term_synonym'; try to repair it
error : Corrupt
Running 'mysql_fix_privilege_tables'...
ERROR 1034 (HY000) at line 132: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 136: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 138: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 139: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 140: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 143: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 144: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 145: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 151: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 156: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 161: Incorrect key file for table
'tables_priv'; try to repair it
ERROR 1034 (HY000) at line 164: Incorrect key file for table
'tables_priv'; try to repair it
ERROR 1034 (HY000) at line 173: Incorrect key file for table
'tables_priv'; try to repair it
ERROR 1034 (HY000) at line 188: Incorrect key file for table
'columns_priv'; try to repair it
ERROR 1034 (HY000) at line 192: Incorrect key file for table
'columns_priv'; try to repair it
ERROR 1034 (HY000) at line 202: Incorrect key file for table
'columns_priv'; try to repair it
ERROR 1034 (HY000) at line 210: Incorrect key file for table 'func';
try to repair it
ERROR 1034 (HY000) at line 218: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 220: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 231: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 237: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 247: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 250: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 254: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 257: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 258: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 259: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 260: Incorrect key file for table 'func';
try to repair it
ERROR 1034 (HY000) at line 264: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 268: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 293: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 298: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 312: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 316: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 330: Incorrect key file for table 'func';
try to repair it
ERROR 1034 (HY000) at line 332: Incorrect key file for table 'func';
try to repair it
ERROR 1034 (HY000) at line 370: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 375: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 376: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 378: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 379: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 381: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 382: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 387: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 388: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 390: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 391: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 393: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 394: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 399: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 405: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 410: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 411: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 413: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 414: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 416: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 417: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 422: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 423: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 425: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 426: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 428: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 429: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 431: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 432: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 434: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 435: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 440: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 441: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 442: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 447: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 454: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 456: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 457: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 458: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 603: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 605: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 606: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 608: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 610: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 611: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 693: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 695: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 696: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 698: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 699: Incorrect key file for table 'host';
try to repair it
ERROR 1034 (HY000) at line 701: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 702: Incorrect key file for table 'db'; try
to repair it
ERROR 1034 (HY000) at line 704: Incorrect key file for table 'user';
try to repair it
ERROR 1034 (HY000) at line 710: Incorrect key file for table 'host';
try to repair it
FATAL ERROR: Upgrade failed
Весь вывод длиннее. И часть таблиц конвертятся нормально. Несколько
пользовательских баз проскакивают без замечаний.
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 14:45 ` adobrovolskii
@ 2012-02-29 15:18 ` adobrovolskii
2012-03-02 7:03 ` Sergey
1 sibling, 0 replies; 13+ messages in thread
From: adobrovolskii @ 2012-02-29 15:18 UTC (permalink / raw)
To: ALT Linux Community general discussions
mysql> CHECK TABLE columns_priv FOR UPGRADE;
+--------------------+-------+----------+---------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text
|
+--------------------+-------+----------+---------------------------------------------------------------+
| mysql.columns_priv | check | Error | Incorrect key file for table
'columns_priv'; try to repair it |
| mysql.columns_priv | check | error | Corrupt
|
+--------------------+-------+----------+---------------------------------------------------------------+
2 rows in set (0.01 sec)
myisamchk /var/lib/mysql/db/mysql/columns_priv
Checking MyISAM file: /var/lib/mysql/db/mysql/columns_priv
Data records: 0 Deleted blocks: 0
- check file-size
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
# myisamchk -r /var/lib/mysql/db/mysql/columns_priv
- recovering (with sort) MyISAM-table '/var/lib/mysql/db/mysql/columns_priv'
Data records: 0
- Fixing index 1
mysqldump --quick mysql > mysql.sql
mysqldump: Got error: 1034: Incorrect key file for table
'columns_priv'; try to repair it when using LOCK TABLES
Есть вариант вылечить базы? Или проще забыть о них?
Удалить и начать все заново?
--
Regards,
Andrii Dobrovol`s`kyj
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] mysql in p6
2012-02-29 14:45 ` adobrovolskii
2012-02-29 15:18 ` adobrovolskii
@ 2012-03-02 7:03 ` Sergey
1 sibling, 0 replies; 13+ messages in thread
From: Sergey @ 2012-03-02 7:03 UTC (permalink / raw)
To: ALT Linux Community general discussions
On 29 февраля 2012 16:45:48 adobrovolskii wrote:
> В интерактивном режиме таблица не лечится почему-то...
когда я не знал про mysql_upgrade, я делал на коленке так. Дампил старую
базу mysql, руками добавлял в дамп недостающие поля, потом, ресторил это
в свежепоставленный mysql. Чтобы узнать, чего не хватает, дампил,
предварительно, базу mysql из свежепоставленного mysql. Пользовательские
базы, вроде бы, копировались без проблем, хотя дамп делал на всякий
случай.
--
С уважением, Сергей
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-03-02 7:03 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-28 18:32 [Comm] mysql in p6 Andrii Dobrovol`s`kii
2012-02-28 19:57 ` Anton Gorlov
2012-02-29 9:19 ` Андрей Черепанов
2012-02-29 11:43 ` adobrovolskii
2012-02-29 11:53 ` adobrovolskii
2012-02-29 12:19 ` Андрей Черепанов
2012-02-29 13:36 ` adobrovolskii
2012-02-29 14:17 ` adobrovolskii
2012-02-29 14:19 ` Андрей Черепанов
2012-02-29 14:45 ` adobrovolskii
2012-02-29 15:18 ` adobrovolskii
2012-03-02 7:03 ` Sergey
2012-02-28 20:23 ` Michael Shigorin
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git