Avatar Image
Usuario habitual
Usuario habitual

Tengo un sitio php en mi pc funcionando, y al querer subirlo a mi@ me encontré con montones de ploblemas para que funcionara, ahora ya lo hace, pero no "recuerda" nada de lo que tengo en el mi pc metido.

Desde el menú admin le doy a Backup y el Save.sql se lo subo al mysql de mi@, pero sistemáticamente siempre da el siguente error, y claro no funciona el sitio php funciona como si acabara de ser instalado:


Error

consulta SQL :

CREATE TABLE ibf_posts(
pid int( 10 ) NOT NULL AUTO_INCREMENT ,
append_edit tinyint( 1 ) DEFAULT '0',
edit_time int( 10 ) ,
author_id mediumint( 8 ) DEFAULT '0' NOT NULL ,
author_name varchar( 32 ) ,
use_sig tinyint( 1 ) DEFAULT '0' NOT NULL ,
use_emo tinyint( 1 ) DEFAULT '0' NOT NULL ,
ip_address varchar( 16 ) NOT NULL ,
post_date int( 10 ) ,
icon_id smallint( 3 ) ,
post text,
queued tinyint( 1 ) DEFAULT '0' NOT NULL ,
topic_id int( 10 ) DEFAULT '0' NOT NULL ,
post_title varchar( 255 ) ,
new_topic tinyint( 1 ) DEFAULT '0',
edit_name varchar( 255 ) ,
post_key varchar( 32 ) DEFAULT '0' NOT NULL ,
post_parent int( 10 ) DEFAULT '0' NOT NULL ,
post_htmlstate smallint( 1 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( pid ) ,
KEY topic_id( topic_id, queued, pid ) ,
KEY author_id( author_id, topic_id ) ,
KEY post_date( post_date ) ,
KEY post( post )
)

MySQL ha dicho:

BLOB column 'post' used in key specification without a key length



A ver si me podéis ayudar, gracias, CoyáN.

Avatar Image
Usuario habitual
Usuario habitual

Con mysql no puedes poner un campo de tipo TEXT como clave

Avatar Image
Usuario habitual
Usuario habitual
Escrito originalmente por molinaweb
Con mysql no puedes poner un campo de tipo TEXT como clave


Uf, yo de mysql no tengo casi ni idea, podrías explicármelo mejor?
O por lo menos decirme si tiene algo que ver eso, con que el sitio php no se vea como en mi casa (y que los usarios nisiquiera aparezcan, ni los ficheros ni nada)

Un saludo, y gracias por la respuesta, CoyáN.
Avatar Image
Usuario habitual
Usuario habitual

prueba con esto:

CREATE TABLE ibf_posts(
pid int( 10 ) NOT NULL AUTO_INCREMENT ,
append_edit tinyint( 1 ) DEFAULT '0',
edit_time int( 10 ) ,
author_id mediumint( 8 ) DEFAULT '0' NOT NULL ,
author_name varchar( 32 ) ,
use_sig tinyint( 1 ) DEFAULT '0' NOT NULL ,
use_emo tinyint( 1 ) DEFAULT '0' NOT NULL ,
ip_address varchar( 16 ) NOT NULL ,
post_date int( 10 ) ,
icon_id smallint( 3 ) ,
post text,
queued tinyint( 1 ) DEFAULT '0' NOT NULL ,
topic_id int( 10 ) DEFAULT '0' NOT NULL ,
post_title varchar( 255 ) ,
new_topic tinyint( 1 ) DEFAULT '0',
edit_name varchar( 255 ) ,
post_key varchar( 32 ) DEFAULT '0' NOT NULL ,
post_parent int( 10 ) DEFAULT '0' NOT NULL ,
post_htmlstate smallint( 1 ) DEFAULT '0' NOT NULL ,
PRIMARY KEY ( pid ) ,
KEY topic_id( topic_id, queued, pid ) ,
KEY author_id( author_id, topic_id ) ,
KEY post_date( post_date ) ,

)

Avatar Image
Okupa del foro
Okupa del foro

Usa phpMyAdmin, puedes descargartelo desde www.sf.net, o phpmyadmin.net, bueno, este te ayudara a crear tus SQL, no estoy muy seguro, pero creo que de PRIMARY KEy, solo puedes hacer una, y tiene que ser un INT o BIGINT.
Adiós...

ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 31/Jul/2005, 01:21
sac_elputoamo0961Jul/05
Por: User 5795558, el 08/Ago/2015, 23:15
User 5795558 NoSetup.org22kAug/15
Por: , el 21/Nov/2012, 13:02
morrit GestionXls27kNov/12
Por: , el 05/May/2011, 04:01
hasfi GestionXls72kMay/11
Por: , el 03/Jul/2010, 17:35
r3spawn GestionXls22kJul/10