MySQL Forums
Forum List  »  Spanish

Error al importar base de datos
Posted by: world trance
Date: November 29, 2012 12:42PM

Hola a todos. Es mi primer mensaje aquí y creo que no será el último...!!

Tras subir a mi servidor una página web me han mandado la base de datos de la misma. Al importar la copia de seguridad de la base de datos me da errores que no sé cómo resolver, disculpad mi ignorancia.

--------------------------------------

CREATE TABLE `categorias` (

`id` INT( 25 ) AUTO_INCREMENT NOT NULL PRIMARY KEY ,
`idpadre` INT( 25 ) DEFAULT '0',
`nombre` VARCHAR( 250 ) ,
`desc` TEXT,
`level` INT DEFAULT '0',
`seccion` INT( 25 ) DEFAULT '1',
`first` SMALLINT( 5 ) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY ( `id` )
) ENGINE = MYISAM ;

MySQL ha dicho:

#1068 - Multiple primary key defined

--------------------------------------

Al acceder a la página con la dirección web me da estos errores:

--------------------------------------

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/u985836881/public_html/mod/stats/visitas_simple.php on line 7

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/u985836881/public_html/mod/stats/visitas_simple.php on line 23

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/u985836881/public_html/mod/usuarios/globales.php on line 18

Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/u985836881/public_html/mod/usuarios/globales.php on line 26
Table 'u985836881_bd.categorias' doesn't exist

--------------------------------------

Gracias por la ayuda..

:)

Options: ReplyQuote


Subject
Views
Written By
Posted
Error al importar base de datos
3119
November 29, 2012 12:42PM
1197
November 29, 2012 01:03PM
922
November 29, 2012 05:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.