Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/01/2014, 15:17
raulfw
Invitado
 
Mensajes: n/a
Puntos:
Exclamación ¿Cómo restaurar la base de datos a un estado anterior?

Tenia que pasar. La he cagado, me he cargado la base de datos, (he instalado una nueva version de Views, luego me he arrepentido y he vuelto a instalar la anterior, y en el log de 'Update' me han salido los siguientes errores EN ROJO:

Código:
user warning: Duplicate key name 'name' query: ALTER TABLE drupal_views_view ADD UNIQUE KEY name (name) in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.mysql-common.inc on line 412.
user warning: Table 'drupal_cache_views_data' already exists query: CREATE TABLE drupal_cache_views_data ( `cid` VARCHAR(255) NOT NULL DEFAULT '', `data` LONGBLOB DEFAULT NULL, `expire` INT NOT NULL DEFAULT 0, `created` INT NOT NULL DEFAULT 0, `headers` TEXT DEFAULT NULL, `serialized` SMALLINT NOT NULL DEFAULT 1, PRIMARY KEY (cid), INDEX expire (expire) ) /*!40100 DEFAULT CHARACTER SET utf8 */ in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.inc on line 551.
user warning: Multiple primary key defined query: ALTER TABLE drupal_views_display ADD PRIMARY KEY (vid, id) in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.mysql-common.inc on line 383.
user warning: Can't DROP 'view_php'; check that column/key exists query: ALTER TABLE drupal_views_view DROP view_php in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.mysql-common.inc on line 331.
user warning: Can't DROP 'is_cacheable'; check that column/key exists query: ALTER TABLE drupal_views_view DROP is_cacheable in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.mysql-common.inc on line 331.
user warning: Duplicate column name 'core' query: ALTER TABLE drupal_views_view ADD `core` INT DEFAULT 0 in /nfs/c07/h01/mnt/99081/domains/x.com/html/includes/database.mysql-common.inc on line 307.

¿El resultado? El sitio se me ha desconfigurado (los bloques se han vuelto locos, y se colocan donde no corresponden) y ahora tengo el sitio Off-line.

DEBO RESTAURAR LA BASE DE DATOS A UN ESTADO ANTERIOR.

La parte buena de todo esto, es que justamente hace 2 dias hice una copia de seguridad de TODO.

La pregunta es... ¿como soluciono este problema? ¿Solo con cambiar la base de datos es suficiente o hace falta que suba el sitio entero de nuevo? ¿Como borro la base de datos anterior para poner la nueva?

Utilizo el modulo 'Backup and restore'!!!!!

¡ Por favor, os pido una ayuda rapida, que tengo el sitio Off-line!

GRACIAS INFINITAS A QUIEN ME AYUDE A SOLUCIONAR ESTE PROBLEMA.