Problema Navicat

Gtaservers

Utente Esperto
Autore del topic
26 Maggio 2012
1.095
21
Miglior risposta
0
Salve, stavo mettendo IIS nel mio retro, arrivo ad inserire il db con navicat, solo che per qualche strano motivo, l'importazione non va a buon fine, uscendo questo errore [Err] 1265 - Data truncated for column 'userid' at row 1
[Err] INSERT INTO `bans` VALUES ('14', 'user', 'TheGamer7070', 'Non Spammare , farai bene a rispettare le Way.', '2', '', '', '1', null, '');
[Msg] Finished - Unsuccessfully
--------------------------------------------------

La cosa strana è che mi è successo solo ora usando IIS, ho sempre usato navicat anche con xampp ma non mi ha mai dato errori di questo genere.
 
Riferimento: Navicat

Salve, stavo mettendo IIS nel mio retro, arrivo ad inserire il db con navicat, solo che per qualche strano motivo, l'importazione non va a buon fine, uscendo questo errore [Err] 1265 - Data truncated for column 'userid' at row 1
[Err] INSERT INTO `bans` VALUES ('14', 'user', 'TheGamer7070', 'Non Spammare , farai bene a rispettare le Way.', '2', '', '', '1', null, '');
[Msg] Finished - Unsuccessfully
--------------------------------------------------



La cosa strana è che mi è successo solo ora usando IIS, ho sempre usato navicat anche con xampp ma non mi ha mai dato errori di questo genere.

L'errore proviene dal database, quale usi?
 
Riferimento: Navicat

L'errore proviene dal database, quale usi?

Non ricordo quale fosse, lo uo da tantissimo tempo, e ormai me lo sono fatto privato diciamo xD
Come potrei riswolvere? da quel che o capito l'errore dovrebbe provenire dalla tabella bans.
 
Riferimento: Navicat

Ho provato ad riupparlo con xampp, e non da problemi,
io, quando ho installato IIS ho installato anche il componenti di MysQL ma non sono configurati, può dipendere da quello?
--------------- AGGIUNTA AL POST ---------------
Installato e configurato correttamente anche mysql, ma ora esce questo errore quando provo ad importarlo,
[Err] 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 'USING BTREE,
KEY `userid` (`user_id`) USING BTREE,
KEY `roomid` (`room_id`' at line 13
[Err] CREATE TABLE `items` (
`id` int(10) unsigned NOT NULL,
`user_id` int(10) NOT NULL,
`room_id` int(10) unsigned NOT NULL DEFAULT '0',
`base_item` int(10) unsigned NOT NULL,
`extra_data` text NOT NULL,
`x` int(11) NOT NULL DEFAULT '0',
`y` int(11) NOT NULL DEFAULT '0',
`z` double NOT NULL DEFAULT '0',
`rot` int(11) NOT NULL DEFAULT '0',
`wall_pos` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`) USING BTREE,
KEY `userid` (`user_id`) USING BTREE,
KEY `roomid` (`room_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
 
Ultima modifica:
Riferimento: Navicat

Ho provato ad riupparlo con xampp, e non da problemi,
io, quando ho installato IIS ho installato anche il componenti di MysQL ma non sono configurati, può dipendere da quello?
--------------- AGGIUNTA AL POST ---------------
Installato e configurato correttamente anche mysql, ma ora esce questo errore quando provo ad importarlo,
[Err] 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 'USING BTREE,
KEY `userid` (`user_id`) USING BTREE,
KEY `roomid` (`room_id`' at line 13
[Err] CREATE TABLE `items` (
`id` int(10) unsigned NOT NULL,
`user_id` int(10) NOT NULL,
`room_id` int(10) unsigned NOT NULL DEFAULT '0',
`base_item` int(10) unsigned NOT NULL,
`extra_data` text NOT NULL,
`x` int(11) NOT NULL DEFAULT '0',
`y` int(11) NOT NULL DEFAULT '0',
`z` double NOT NULL DEFAULT '0',
`rot` int(11) NOT NULL DEFAULT '0',
`wall_pos` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`) USING BTREE,
KEY `userid` (`user_id`) USING BTREE,
KEY `roomid` (`room_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
[Msg] Finished - Unsuccessfully
--------------------------------------------------
Con tutti i database da questo errore?