Serveur de jeux
UNKNOW
-
Sequelle -
Sequelle -
Bonjour,j'ai un probleme j'ai télécharger des fichier pour faire un server de jeux et quand j'éxecute le fichier SQL
voila le message " 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 'WITHOUT OIDS' " Comment faire ! svp.
PS:j'utilise Navicat lite.
voila le message " 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 'WITHOUT OIDS' " Comment faire ! svp.
PS:j'utilise Navicat lite.
A voir également:
- Serveur de jeux
- Jeux java itel - Télécharger - Jeux vidéo
- Waptrick jeux - Télécharger - Jeux vidéo
- Changer serveur dns - Guide
- Jeux zuma - Télécharger - Jeux vidéo
- Jeux java football - Télécharger - Jeux vidéo
9 réponses
-- CREATE DATABASE cohemu_game
-- WITH OWNER = postgres
-- ENCODING = 'UTF8'
-- TABLESPACE = pg_default;
-- DROP SEQUENCE account_id_seq;
-- DROP TABLE accounts;
CREATE TABLE accounts
(
id serial NOT NULL,
account_id int8 NOT NULL, -- references account database
max_slots int2 NOT NULL DEFAULT 8,
CONSTRAINT account_pkey PRIMARY KEY (id),
CONSTRAINT account_account_id_key UNIQUE (account_id)
)
WITHOUT OIDS;
ALTER TABLE accounts OWNER TO cohadmin;
COMMENT ON COLUMN accounts.account_id IS 'references account database';
-- DROP SEQUENCE character_id_seq;
-- DROP TABLE characters;
CREATE TABLE characters
(
id serial NOT NULL,
char_level int2 NOT NULL DEFAULT 0,
slot_index int2 NOT NULL DEFAULT 0,
account_id int4 NOT NULL,
char_name varchar(32) NOT NULL,
archetype varchar(32) NOT NULL,
origin varchar(32) NOT NULL,
bodytype int4 NOT NULL,
face_bits int4 NOT NULL,
current_map varchar(128) NOT NULL,
villain bool NOT NULL,
unkn1 float4 NOT NULL,
unkn2 float4 NOT NULL,
unkn3 int4 NOT NULL DEFAULT 1,
unkn4 int4 NOT NULL DEFAULT 1,
last_costume_id int4,
CONSTRAINT character_pkey PRIMARY KEY (id),
CONSTRAINT character_account_id_fkey FOREIGN KEY (account_id)
REFERENCES accounts (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT character_account_id_key UNIQUE (account_id, slot_index)
)
WITHOUT OIDS;
ALTER TABLE characters OWNER TO cohadmin;
-- Index: fki_
-- DROP INDEX fki_;
CREATE INDEX fki_
ON characters
USING btree
(account_id);
-- DROP SEQUENCE costume_id_seq;
-- DROP TABLE costume;
CREATE TABLE costume
(
id serial NOT NULL,
floats_14 float4[] NOT NULL,
arr7 int4[] NOT NULL,
character_id int4 NOT NULL,
costume_index int2 NOT NULL,
CONSTRAINT costume_pkey PRIMARY KEY (id),
CONSTRAINT costume_character_id_fkey FOREIGN KEY (character_id)
REFERENCES characters (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT costume_character_id_key UNIQUE (character_id, costume_index)
)
WITHOUT OIDS;
ALTER TABLE costume OWNER TO cohadmin;
-- DROP SEQUENCE costume_part_id_seq;
-- DROP TABLE costume_part;
CREATE TABLE costume_part
(
id serial NOT NULL,
costume_id int4 NOT NULL,
part_type int4 NOT NULL DEFAULT 0,
name_0 varchar(256),
name_1 varchar(256),
name_2 varchar(256),
name_3 varchar(256),
color_0 int4 NOT NULL,
color_1 int4 NOT NULL,
color_2 int4 NOT NULL,
color_3 int4 NOT NULL,
CONSTRAINT costume_part_pkey PRIMARY KEY (id),
CONSTRAINT costume_part_character_id_fkey FOREIGN KEY (costume_id)
REFERENCES costume (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT costume_part_costume_id_key UNIQUE (costume_id, part_type)
)
WITHOUT OIDS;
ALTER TABLE costume_part OWNER TO cohadmin;
ALTER TABLE characters ADD CONSTRAINT characters_last_costume_id_fkey FOREIGN KEY (last_costume_id) REFERENCES costume (id) ON UPDATE SET NULL ON DELETE SET NULL;
-- WITH OWNER = postgres
-- ENCODING = 'UTF8'
-- TABLESPACE = pg_default;
-- DROP SEQUENCE account_id_seq;
-- DROP TABLE accounts;
CREATE TABLE accounts
(
id serial NOT NULL,
account_id int8 NOT NULL, -- references account database
max_slots int2 NOT NULL DEFAULT 8,
CONSTRAINT account_pkey PRIMARY KEY (id),
CONSTRAINT account_account_id_key UNIQUE (account_id)
)
WITHOUT OIDS;
ALTER TABLE accounts OWNER TO cohadmin;
COMMENT ON COLUMN accounts.account_id IS 'references account database';
-- DROP SEQUENCE character_id_seq;
-- DROP TABLE characters;
CREATE TABLE characters
(
id serial NOT NULL,
char_level int2 NOT NULL DEFAULT 0,
slot_index int2 NOT NULL DEFAULT 0,
account_id int4 NOT NULL,
char_name varchar(32) NOT NULL,
archetype varchar(32) NOT NULL,
origin varchar(32) NOT NULL,
bodytype int4 NOT NULL,
face_bits int4 NOT NULL,
current_map varchar(128) NOT NULL,
villain bool NOT NULL,
unkn1 float4 NOT NULL,
unkn2 float4 NOT NULL,
unkn3 int4 NOT NULL DEFAULT 1,
unkn4 int4 NOT NULL DEFAULT 1,
last_costume_id int4,
CONSTRAINT character_pkey PRIMARY KEY (id),
CONSTRAINT character_account_id_fkey FOREIGN KEY (account_id)
REFERENCES accounts (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT character_account_id_key UNIQUE (account_id, slot_index)
)
WITHOUT OIDS;
ALTER TABLE characters OWNER TO cohadmin;
-- Index: fki_
-- DROP INDEX fki_;
CREATE INDEX fki_
ON characters
USING btree
(account_id);
-- DROP SEQUENCE costume_id_seq;
-- DROP TABLE costume;
CREATE TABLE costume
(
id serial NOT NULL,
floats_14 float4[] NOT NULL,
arr7 int4[] NOT NULL,
character_id int4 NOT NULL,
costume_index int2 NOT NULL,
CONSTRAINT costume_pkey PRIMARY KEY (id),
CONSTRAINT costume_character_id_fkey FOREIGN KEY (character_id)
REFERENCES characters (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT costume_character_id_key UNIQUE (character_id, costume_index)
)
WITHOUT OIDS;
ALTER TABLE costume OWNER TO cohadmin;
-- DROP SEQUENCE costume_part_id_seq;
-- DROP TABLE costume_part;
CREATE TABLE costume_part
(
id serial NOT NULL,
costume_id int4 NOT NULL,
part_type int4 NOT NULL DEFAULT 0,
name_0 varchar(256),
name_1 varchar(256),
name_2 varchar(256),
name_3 varchar(256),
color_0 int4 NOT NULL,
color_1 int4 NOT NULL,
color_2 int4 NOT NULL,
color_3 int4 NOT NULL,
CONSTRAINT costume_part_pkey PRIMARY KEY (id),
CONSTRAINT costume_part_character_id_fkey FOREIGN KEY (costume_id)
REFERENCES costume (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT costume_part_costume_id_key UNIQUE (costume_id, part_type)
)
WITHOUT OIDS;
ALTER TABLE costume_part OWNER TO cohadmin;
ALTER TABLE characters ADD CONSTRAINT characters_last_costume_id_fkey FOREIGN KEY (last_costume_id) REFERENCES costume (id) ON UPDATE SET NULL ON DELETE SET NULL;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Bonjour,
As-tu une idée de l'utilité de "WITHOUT OIDS" ?
As-tu essayé d'exécuter le script sans aucun "WITHOUT OIDS" ?
Je suis pas tres Postgres mais la syntaxe me semble cohérente.
Si ça continue à clocher essaie de déplacer tes déclarations de clé étrangères en dehors de la création de table... comme ça, juste pour voir.
As-tu une idée de l'utilité de "WITHOUT OIDS" ?
As-tu essayé d'exécuter le script sans aucun "WITHOUT OIDS" ?
Je suis pas tres Postgres mais la syntaxe me semble cohérente.
Si ça continue à clocher essaie de déplacer tes déclarations de clé étrangères en dehors de la création de table... comme ça, juste pour voir.
dans les fichiers récupérés, certains sont des scripts SQL.
une fois que tu les as trouvé (ou que tu as trouvé le seul), essaies donc de supprimer les WITHOUT OIDS, enregistre et relance la mécanique, juste pour voir
une fois que tu les as trouvé (ou que tu as trouvé le seul), essaies donc de supprimer les WITHOUT OIDS, enregistre et relance la mécanique, juste pour voir
Désolé mais il va falloir trouver un spécialiste Navicat Lite ou qqe chose dans le genre.
Parce que la syntaxe semble correcte avant ou après le premier WITHOUT OIDS ; parce qu'au final, ça ne changera pas grand chose de déplacer les déclarations des contraintes de table en dehors des créations de table... je ne comprends pas où ça cloche :-(
Désolé de ne pouvoir t'aider plus.
Parce que la syntaxe semble correcte avant ou après le premier WITHOUT OIDS ; parce qu'au final, ça ne changera pas grand chose de déplacer les déclarations des contraintes de table en dehors des créations de table... je ne comprends pas où ça cloche :-(
Désolé de ne pouvoir t'aider plus.