Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Sobota, 14. jún 2025

Súbor: [Platon] / web-apps / finance-manager / sql / README-InnoDB (stiahnutie)

Revízia 1.2, Fri Apr 9 09:17:03 2004 UTC (21 years, 2 months ago) by rajo


Zmeny od 1.1: +35 -2 [lines]

Added schema and problem description + solving method.

You must enable InnoDB support in your MySQL server, because
finance-manager uses transaction safe tables InnoDB.

Please, read documentation for your MySQL server.

1.    QUICK  HOWTO:
=-=-=-=-=-=-==--=-=

- remove line "skip-innodb" from /etc/mysql/my.cnf
- add these options into /etc/mysql/my.cnf:

  innodb_data_home_dir = /var/lib/mysql/
  innodb_data_file_path = ibdata1:10M:autoextend
  innodb_log_group_home_dir = /var/lib/mysql/
  innodb_log_arch_dir = /var/lib/mysql/
  innodb_buffer_pool_size = 16M
  innodb_additional_mem_pool_size = 2M
  innodb_log_file_size = 5M
  innodb_log_buffer_size = 8M
  innodb_flush_log_at_trx_commit = 1
  innodb_lock_wait_timeout = 50


2.    ERROR when creating database:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Error message:

ERROR 1217 at line 12: Cannot delete or update a parent row: a foreign key constraint fails

Solution:

Drop tables (or create tables) in the right order. Take a look at
create-sql-dump.sh script. Transation safe tables (InnoDB table type)
contains dependencies, which are checked by database server engine:


+------------+  eventid
| Transation |-----------------+
+------------+                 |
       |                       V
       |      from_source  +-------+
       |  +----------------| Event |
       |  |    to_source   +-------+
       V  V                    |
   +--------+                  |
   | Source |                  | event_type
   +--------+                  |
                               V
                        +------------+
                        | event_type |
                        +------------+



--
Lubomir Host 'rajo' <rajo AT platon. NOSPAM .sk>
2004-04-07


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok