Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
[php/mysql] problem z systemem newsow
#1
Instaluje teraz system newsow Axel News Engine. Stworzylem baze mysql i zminilem chmody. ale jak juz chce zakonczyc instalacje pojawia sie blad ze stworzyl czesc tabelek w bazie a czesc nie

news1_user - Table successfully created
news1_groups - Table successfully created
news1_avatar - Table successfully created

a tutaj ten blad:

Query fatal error:
Query: CREATE TABLE news1_news ( newsid int(11) NOT NULL auto_increment, headline text NOT NULL, hometext text NOT NULL, newstext text NOT NULL, catid int(11) NOT NULL default '0', published int(1) NOT NULL default '0', comments_allowed int(1) NOT NULL default '0', newsdate int(11) NOT NULL default '0', news_enddate int(11) default NULL, pic_n int(1) NOT NULL default '0', pic_name varchar(255) NOT NULL default '', userid varchar(255) NOT NULL default '', news_links int(1) NOT NULL default '0', reads int(3) NOT NULL default '0', PRIMARY KEY (newsid), KEY catid (catid), KEY userid (userid) )
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads int(3) NOT NULL default '0', PRIMARY KEY (newsid), KEY catid (c' at line 15


gdy chce to stworzyc bezposrednio przez baze to wyskakuje:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reads int(3) NOT NULL default '0', PRIMARY KEY (newsid), KEY catid (catid), KEY ' at line 1


jak to zrobic zeby to dzialalo i stworzylo brakujace tabele?
Odpowiedz
#2
Zmienić kod na poprawny Big Grin znajdź plik, gdzie są zapisane te instrukcje SQL i wklej go tu. To podpowiem Ci, że co jest z nazwą reads
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  [JAVA SCRIPT][PHP][MYSQL] Odlicznie czasu hahahehe 4 4,101 03-09-2013, 14:21
Ostatni post: mateo
  [HTML][MySQL][PHP]PHP , MySql Tabele i rekordy, Wyciąganie danych mlodyzero 8 5,698 09-01-2013, 01:59
Ostatni post: hieroshima
  [php][mysql]Istniejąca data+ 3miesiące e-konrad 3 3,083 06-09-2012, 02:10
Ostatni post: camelrafal
  [HTML + CSS] Prezentacja newsów muph19 2 2,616 22-05-2012, 22:49
Ostatni post: muph19
  [PHP] Pytanie: System newsów Sebjekt 6 4,415 17-05-2012, 01:29
Ostatni post: Sebjekt

Skocz do:


Użytkownicy przeglądający ten wątek:
Sponsorzy i przyjaciele
SeoHost.pl