Joomla.it Forum
Joomla! 1.0.x (versione con supporto terminato) => Le voci di Joomla.it (solo per versione Joomla 1.0.x) => : dick dastardly 03 Jun 2006, 23:23:11
-
ciao a tutti, avrei un problemone che non ho idea di come gestire: sia docman che remository non terminano l'installazione perchè anno un problema simile con mysql; l'errore è questo:
Errore SQL DB function failed with error number 1005
Can't create table 'jos_docman' (errno: 13) SQL=CREATE TABLE `jos_docman` ( `id` int(11) NOT NULL auto_increment, `catid` int(11) NOT NULL default '1', `dmname` text NOT NULL, `dmdescription` longtext, `dmdate_published` datetime NOT NULL default '0000-00-00 00:00:00', `dmowner` int(4) NOT NULL default '-1', `dmfilename` text NOT NULL, `published` tinyint(1) NOT NULL default '0', `dmurl` text NULL, `dmcounter` int(11) NULL default '0', `checked_out` int(11) NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `approved` tinyint(1) NOT NULL default '0', `dmthumbnail` text NULL, `dmlastupdateon` datetime default '0000-00-00 00:00:00', `dmlastupdateby` int(5) NOT NULL default '-1', `dmsubmitedby` int(5) NOT NULL default '-1', `dmmantainedby` int(5) default '0', `dmlicense_id` int(5) default '0', `dmlicense_display` tinyint(1) NOT NULL default '0', `access` int(11) unsigned NOT NULL default '0', `attribs` text NOT NULL, PRIMARY KEY (`id`) ) TYPE=MyISAM
SQL =
CREATE TABLE `jos_docman` (
`id` int(11) NOT NULL auto_increment,
`catid` int(11) NOT NULL default '1',
`dmname` text NOT NULL, `dmdescription` longtext,
`dmdate_published` datetime NOT NULL default '0000-00-00 00:00:00',
`dmowner` int(4) NOT NULL default '-1',
`dmfilename` text NOT NULL,
`published` tinyint(1) NOT NULL default '0',
`dmurl` text NULL,
`dmcounter` int(11) NULL default '0',
`checked_out` int(11) NOT NULL default '0',
`checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00',
`approved` tinyint(1) NOT NULL default '0',
`dmthumbnail` text NULL,
`dmlastupdateon` datetime default '0000-00-00 00:00:00',
`dmlastupdateby` int(5) NOT NULL default '-1',
`dmsubmitedby` int(5) NOT NULL default '-1',
`dmmantainedby` int(5) default '0',
`dmlicense_id` int(5) default '0',
`dmlicense_display` tinyint(1) NOT NULL default '0',
`access` int(11) unsigned NOT NULL default '0',
`attribs` text NOT NULL,
PRIMARY KEY (`id`) )
TYPE=MyISAM
il sito è lug-govonis.homelinux.org su debian testing, apache2 , mysql5.0.20, php 5.1.2.
-
spulciando la rete ho trovato questo, forse ti puo' aiutare:
http://sql-info.de/mysql/referential-integrity.html (http://sql-info.de/mysql/referential-integrity.html)
Nella parte dove si cita l'errore in questione ci sono questi tre casi, vedi se rientri nella statistica
* The referenced table is not an InnoDB table
* The referenced column in other_table is not unique
* The referenced column in other_table has a different type to other_id
-
ho fatto un paio di prove, ma non capendo un "h" di database e a dire la verità neppure di molte altre cose che rgurdano web in genere, temo che il sito che volevo fare al mio neocostituendo lug rimarrà aime senza sezione download sino a quando qualcuno non svelerà l'arcano che circonda il mio problema...
Ho provato ad editare docman.xml facendo un paio di tentativi tipo:
>
`access` int(11) unsigned NOT NULL default '0',
`attribs` text NOT NULL,
SET FOREIGN_KEY_CHECKS=0.
PRIMARY KEY (`id`) )
TYPE=innoDB</query>
>
così si inc... con un errore di sintassi su "foreignkey" che non vuole e solo modificando type in innoDB da sempre lo stesso errore.
brancolo nel buio più totale...
sapreste indicarmi un modo per creare la tabella a manina cosi magari capisco dove si punta e come modificare l'installer per non fargliela creare?
grazie dick
P.S.: sono rimasto sbalordito dalla celerità nella risposta precedente grazie!!!
-
visto che hai linux sotto mano, apri la shell, apri mysql e ti crei la tabella da zero. Puoi farlo anche tramite phpMyadmin in modalita grafica o in modalita' query aprendo la pagina per la creazione delle query.
Per capire come creare una tabella ti rimando alla doc (http://dev.mysql.com/doc/refman/5.0/en/create-table.html) di mysql
-
Chiedo perdono, ma alla fine non so come, era solo un problema di permessi sul DB che qualche applicazione probabilmente aveva cambiato... sorry..
-
l'importante e' che si sia tutto risolto