Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mysq] phpMyAdmin - komendy
Babcia@Stefa
post
Post #1





Grupa: Zarejestrowani
Postów: 654
Pomógł: 17
Dołączył: 19.03.2006
Skąd: z kosmosu ;)

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


Witam, chciałem wprowadzić w oknie zapytania polecenie:

  1. CREATE TABLE users (
  2. u_id int(11) NOT NULL AUTO_INCREMENT,
  3. u_name varchar(32) NOT NULL DEFAULT '',
  4. u_password varchar(40) NOT NULL DEFAULT '',
  5. u_email varchar(64) NOT NULL DEFAULT '',
  6. u_activation_key varchar(40) NOT NULL DEFAULT '',
  7. u_active int(1) NOT NULL DEFAULT '0',
  8. PRIMARY KEY (u_id)
  9. ) ENGINE=MyISAM DEFAULT CHARSET=latin2;


I wyskakuje mi taki błąd:

Cytat
Błąd
zapytanie SQL:

CREATE TABLE users(

u_id int( 11 ) NOT NULL AUTO_INCREMENT ,
u_name varchar( 32 ) NOT NULL default '',
u_password varchar( 40 ) NOT NULL default '',
u_email varchar( 64 ) NOT NULL default '',
u_activation_key varchar( 40 ) NOT NULL default '',
u_active int( 1 ) NOT NULL default '0',
PRIMARY KEY ( u_id )
) ENGINE = MYISAM DEFAULT CHARSET = latin2
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 'DEFAULT CHARSET=latin2' at line 9



Gdzie w tym poleceniu jest błąd?

@edit

Zmieniłem i dalej błąd :/

Dziękuję, Babcia@Stefa

Ten post edytował Babcia@Stefa 17.09.2006, 16:08:34
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
qlash
post
Post #2





Grupa: Zarejestrowani
Postów: 73
Pomógł: 0
Dołączył: 29.08.2006

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


Wg mnie strukture tabeli wyeksportowales z jakiegos nowszego phpmyadmina, a chcesz ja zaimportowac do starszej (starsza zamiast ENGINE=MyISAM miala TYPE=MyISAM), jezeli robisz to na localhoscie wrzuc nowszego phpmyadmina i problem z glowy (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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: 8.10.2025 - 07:09