MySQL Forums
Forum List  »  French

Re: Forward engineer... le moteur innoDB n'apparait pas le script
Posted by: Jean Molliné
Date: December 02, 2009 11:58AM

Salut,
il faudrait d'abord vérifier si le moteur InnoDB est bien activé. Pour ça, une requête SHOW ENGINES devrait fournir une réponse dans ce style :
mysql> SHOW ENGINES;
+------------+---------+----------------------------------------------------------------+
| Engine     | Support | Comment                                                        |
+------------+---------+----------------------------------------------------------------+
| MyISAM     | YES     | Default engine as of MySQL 3.23 with great performance         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables      |
| InnoDB     | DEFAULT | Supports transactions, row-level locking, and foreign keys     |
| BerkeleyDB | NO      | Supports transactions and page-level locking                   |
| BLACKHOLE  | YES     | /dev/null storage engine (anything you write to it disappears) |
| EXAMPLE    | NO      | Example storage engine                                         |
| ARCHIVE    | YES     | Archive storage engine                                         |
| CSV        | NO      | CSV storage engine                                             |
| ndbcluster | NO      | Clustered, fault-tolerant, memory-based tables                 |
| FEDERATED  | YES     | Federated MySQL storage engine                                 |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                          |
| ISAM       | NO      | Obsolete storage engine                                        |
+------------+---------+----------------------------------------------------------------+
Ensuite, si le moteur est bien présent, il faudrait vérifier si dans les scripts de création le moteur est bien indiqué pour chaque table :
CREATE maTable(
    colonne ....
) engine InnoDB;
Si ce n'est pas indiqué, alors MySQL appliquera le moteur par défaut défini dans le fichier de configuration (my.cnf ou my.ini)

______________________________________________________________
Une question bien formulée, c'est un problème bien compris : ça représente déjà les 3/4 de la réponse ;)

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Forward engineer... le moteur innoDB n'apparait pas le script
3612
December 02, 2009 11:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.