Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> #1064 ??????????
abras
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 6.02.2004

Ostrzeżenie: (0%)
-----


Witam!

Mam zainstalowany apache2.0.48, php4.3.4 , mysql 4.0.17 , phpmyadmin 2.5.5 i sciagnolem phpnuke 6.9 admin rusza dziala poprawnie jednak w kiedy chce zaladowac do nowo utworzonej bazy nuke.sql wysypuje sie komunikatem :

--
------------------------------------------------------- --
--
--
CREATE TABLE confirm(
confirm_id char( 32 ) NOT NULL default '',
session_id char( 32 ) NOT NULL default '',
code char( 6 ) NOT NULL default '',
PRIMARY KEY ( session_id, confirm_id )
) TYPE = MYISAM

MySQL zwrócił komunikat:

#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 '---------------------------------------------------------
--
--


moze mi ktos pomóc i powiedziec dlaczego nie wczytuje bazy ? Nie bardzo znam angielski, wiem ze kod 1064 to ER_PARSE_ERROR i tylko tyle zrozumialem z dokumentacji. Dopiero zaczyna się tym bawić dlatego prosze o wyrozumiałość

Z góry dziekuje
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
cichy
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 197
Pomógł: 0
Dołączył: 9.09.2003
Skąd: z Marsa

Ostrzeżenie: (0%)
-----


Prawdopodobnie przyczyną jest to że w zapytaniu SQL używasz ---------
Powywalaj je wszsytkie a powinno ruszyć bez problemu.

Pozdro
Go to the top of the page
+Quote Post
abras
post
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 6.02.2004

Ostrzeżenie: (0%)
-----


Usunąłem tę linie według twojej sugestii ale .....



Błąd

Wygląda na to, że w twoim zapytaniu SQL jest błąd. W znalezieniu przyczyny problemu może pomóc także - jeśli się pojawi - poniższy opis błędu serwera MySQL.

ERROR: Nieprawidłowy identyfikator @ 70
STR: 3.23.
SQL: MySQL dump 8.22

Host: localhost Database: nuke

Server version3.23.54


Table structure for table 'confirm'


CREATE TABLE confirm (
confirm_id char(32) NOT NULL default '',
session_id char(32) NOT NULL default '',
code char(6) NOT NULL default '',
PRIMARY KEY (session_id,confirm_id)
) TYPE=MyISAM

zapytanie SQL :

MySQL dump 8.22 Host: localhost Database: nuke Server version 3.23.54 Table structure for table 'confirm' CREATE TABLE confirm ( confirm_id char(32) NOT NULL default '', session_id char(32) NOT NULL default '', code char(6) NOT NULL default '', PRIMARY KEY (session_id,confirm_id) ) TYPE=MyISAM

MySQL zwrócił komunikat:

#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 'MySQL dump 8.22

Host: localhost Database: nuke

Server ve
Go to the top of the page
+Quote Post
GeoS
post
Post #4





Grupa: Zarejestrowani
Postów: 602
Pomógł: 0
Dołączył: --
Skąd: W - WA -> GRO

Ostrzeżenie: (0%)
-----


Obstawiam 2 rzeczy:
1. za duzo jest o TYPE = MYISAM
lub
2. masz gdzies komentarze, ktore sa niewyhashowane
Go to the top of the page
+Quote Post
uboottd
post
Post #5





Grupa: Zarejestrowani
Postów: 384
Pomógł: 0
Dołączył: 3.04.2003
Skąd: Chorzow

Ostrzeżenie: (0%)
-----


Cytat
zapytanie SQL :  

MySQL dump 8.22 Host: localhost Database: nuke Server version 3.23.54 Table structure for table 'confirm' CREATE TABLE confirm ( confirm_id char(32) NOT NULL default '', session_id char(32) NOT NULL default '', code char(6) NOT NULL default '', PRIMARY KEY (session_id,confirm_id) ) TYPE=MyISAM  

Z tego wynika ze przy usuwaniu ---------- nie usunales komentarzy, ktore byly oznaczone przez --.
Usun wszystkie teksty poza samymi zapytaniami to bedzie dobrze.

TYPE=MyISAM jest rozszerzeniem mysqlowym. jesli tabele wciskasz mysqlowi to jest ok, inne bazy Ci to odrzuca.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.12.2025 - 00:32