Back to top

Autore Topic: docman Errore SQL DB function failed with error number 1005  (Letto 2884 volte)

Offline dick dastardly

  • Nuovo arrivato
  • *
  • Post: 11
    • Mostra profilo
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.

Offline giak

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1259
  • Sesso: Maschio
    • Mostra profilo
Re: docman Errore SQL DB function failed with error number 1005
« Risposta #1 il: 04 Giu 2006, 00:06:51 »
spulciando la rete ho trovato questo, forse ti puo' aiutare:

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
webmaster
www.egiakweb.net
 Developer pgDesigner - Datamodel designer for PostgreSQL pgdesigner.sourceforge.net  I belive! Free as in Freedom www.gnu.org

Offline dick dastardly

  • Nuovo arrivato
  • *
  • Post: 11
    • Mostra profilo
Re: docman Errore SQL DB function failed with error number 1005
« Risposta #2 il: 04 Giu 2006, 21:49:12 »
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!!!

Offline giak

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1259
  • Sesso: Maschio
    • Mostra profilo
Re: docman Errore SQL DB function failed with error number 1005
« Risposta #3 il: 05 Giu 2006, 00:23:35 »
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 di mysql
webmaster
www.egiakweb.net
 Developer pgDesigner - Datamodel designer for PostgreSQL pgdesigner.sourceforge.net  I belive! Free as in Freedom www.gnu.org

Offline dick dastardly

  • Nuovo arrivato
  • *
  • Post: 11
    • Mostra profilo
Re: docman Errore SQL DB function failed with error number 1005
« Risposta #4 il: 10 Giu 2006, 12:48:21 »
Chiedo perdono, ma alla fine non so come, era solo un problema di permessi sul DB che qualche applicazione probabilmente aveva cambiato... sorry..

Offline giak

  • Team Joomla.it
  • Abituale
  • *******
  • Post: 1259
  • Sesso: Maschio
    • Mostra profilo
Re: docman Errore SQL DB function failed with error number 1005
« Risposta #5 il: 11 Giu 2006, 02:18:47 »
l'importante e' che si sia tutto risolto
webmaster
www.egiakweb.net
 Developer pgDesigner - Datamodel designer for PostgreSQL pgdesigner.sourceforge.net  I belive! Free as in Freedom www.gnu.org

 



Web Design Bolzano Kreatif