2012-01-12 19 views
7

El servidor de un cliente ejecuta MySQL 5.0. Anoche el servidor se reinició automáticamente para instalar las actualizaciones de Windows. Después de reiniciar, MySQL no quiere ejecutar más. El registro de MySQL indica que se apaga normalmente. Los registros de Windows muestran que el servicio no puede iniciarse porque "el motor de almacenamiento predeterminado (InnoDB) no está disponible". MySQL estaba funcionando bien durante años antes de esto y nada había cambiado recientemente.MySQL no se inicia, InnoDB no está disponible

Las copias de seguridad diarias están hechas con los datos, y el directorio de instalación todavía está allí.

¿Cómo ejecuto el servicio MySQL nuevamente?

EDIT: acabo de notar lo siguiente en el archivo server.err en la carpeta de datos:

InnoDB: Error: log file .\ib_logfile0 is of different size 0 10485760 bytes 
InnoDB: than specified in the .cnf file 0 25165824 bytes! 
120112 5:16:30 [ERROR] Default storage engine (InnoDB) is not available 
120112 5:16:30 [ERROR] Aborting 
+1

Para resolver el problema, mueva/renombrar/borrar los archivos de registro existentes en la carpeta de datos. Inicie el servicio MySQL, y se recrearán con el tamaño correcto. –

+0

¿Qué sucede si cambia la configuración en la forma en que mysql le pregunta? ;-) – zerkms

+0

No pude iniciar MySQL en absoluto. –

Respuesta

11

Debe detener el servidor MySQL, eliminar archivo de registro y empezar de nuevo. Debería funcionar después. Por supuesto, haz una copia de seguridad primero. Si no funciona, intente solucionarlo desde el enlace this.

+0

Su respuesta fue útil, pero en mi caso MySQL no comenzó en absoluto. –

3

Puede editar el .cnf, buscar el parámetro innodb_log_file_size y establecer el tamaño (en megabytes) que coincida con el tamaño del ib_logfile0.

C: \ MySql \ data> dir

24/10/2012 08:47 24.117.248 ib_logfile0

Megas = 24117248/1024/1024 = 23

innodb_log_file_size = 23M

Que intentan iniciar el servicio.

0

En mi caso, eliminé la carpeta c: \ windows \ temp \ myslql. Creé la carpeta "mysql" en temp otra vez y viola funcionó!

+1

Cuando no está seguro de la validez de su respuesta, es mejor agregar un comentario. – dkar

1

Bien hecho Aleksandar Vučetić!

He borrado estos archivos de "mysql/data":

- ib_logfile0 
- ib_logfile1 
- ibdata1 

y MySQL servicio se inicia de nuevo.

log de MySQL dice:

InnoDB: The first specified data file .\ibdata1 did not exist: 
InnoDB: a new database to be created! 
140719 0:57:55 InnoDB: Setting file .\ibdata1 size to 10 MB 
InnoDB: Database physically writes the file full: wait... 
140719 0:57:55 InnoDB: Log file .\ib_logfile0 did not exist: new to be created 
InnoDB: Setting log file .\ib_logfile0 size to 54 MB 
InnoDB: Database physically writes the file full: wait... 
140719 0:57:56 InnoDB: Log file .\ib_logfile1 did not exist: new to be created 
InnoDB: Setting log file .\ib_logfile1 size to 54 MB 
InnoDB: Database physically writes the file full: wait... 
InnoDB: Doublewrite buffer not found: creating new 
InnoDB: Doublewrite buffer created 
InnoDB: Creating foreign key constraint system tables 
InnoDB: Foreign key constraint system tables created 
140719 0:57:57 InnoDB: Started; log sequence number 0 0 
+1

Hola adiva, bienvenido al sitio :) Solo como un aviso, realmente no hay necesidad de que dejes esta respuesta aquí - la pregunta ya tiene una respuesta aceptada que resolvió el problema. Lo que puede hacer, en cambio, es devolver la respuesta que lo ayudó y/o dejar un comentario explicando por qué es una buena respuesta – JKillian