Enable MySQL InnoDB Storage Engine Support in XAMPP Installation Activer MySQL InnoDB support moteur dans l'installation de XAMPP
XAMPP from Apache Friends XAMPP amis de l'Apache is a collection of free open source apps that make it easy to install Apache distribution containing MySQL, PHP and Perl. est une collection de libre et open source applications qui facilitent l'installation d'Apache qui contient MySQL, PHP et Perl. There are four XAMPP distributions for Windows, Linux, Mac OS X and Solaris. Il ya quatre distributions XAMPP pour Windows, Linux, Mac OS X et Solaris. To set up an Apache web server with XAMPP, simply download and extract XAMPP, and the Apache HTTPD web server is ready after one or two more auto-execute scripts. Pour configurer un serveur web Apache avec XAMPP, il vous suffit de télécharger et extraire XAMPP et Apache HTTPD serveur Web est prêt après un ou deux auto-exécuter des scripts. There are no changes to the Windows registry (unless you’re using Widows installer version of XAMPP) and it’s not necessary to edit any configuration files. Il n'ya pas de changement de registre de Windows (sauf si vous utilisez les veuves d'installation de XAMPP version) et il n'est pas nécessaire de modifier les fichiers de configuration.
However, by default, InnoDB MySQL database storage engine is not enabled in the my.cnf configuration file. Cependant, par défaut, base de données MySQL InnoDB moteur de stockage n'est pas activé dans le fichier de configuration my.cnf. If a webmaster plans to use InnoDB features, such as one to many or many to many table relationships on foreign key constraints, or transaction-safe commands such as commit, rollback and crash recovery capabilities. Si un webmaster envisage d'utiliser InnoDB fonctions, telles que un à plusieurs ou plusieurs à plusieurs tables reliées sur les contraintes de clé étrangère, ou de la transaction de sécurité des commandes comme commettre, la rétroactivité et l'écrasement des capacités de récupération.
To enable the support of MySQL server on InnoDB storage engine, locate the “my.cnf” config file (normally in / installation_path /xampp/mysql/bin/ directory), and edit the my.cnf with any text editor such as vi. Pour activer le support du serveur MySQL sur moteur de stockage InnoDB, localisez le compte "my.cnf" fichier de configuration (généralement dans / installation_path / xampp / mysql / bin / répertoire), et modifier les my.cnf avec n'importe quel éditeur de texte tels que vi.
Search and locate each of the following lines (except the lines in italic where they’re comments): De recherche et de localiser chacune des lignes suivantes (sauf les lignes en italiques où ils sont des commentaires):
- Comment the following line to unskip and use InnoDB -- Commentaire la ligne suivante à unskip et l'utilisation InnoDB
skip-innodb- Uncomment the following options for InnoDB database if you are using InnoDB tables. -- Supprimez les options suivantes pour la base de données InnoDB si vous utilisez les tables InnoDB.
#innodb_data_home_dir = C:/xampp/xampp/mysql/data/ # innodb_data_home_dir = C: / xampp / xampp / mysql / data /
#innodb_data_file_path = ibdata1:10M:autoextend # innodb_data_file_path = ibdata1: 10M: autoextend
#innodb_log_group_home_dir = C:/xampp/xampp/mysql/data/ # innodb_log_group_home_dir = C: / xampp / xampp / mysql / data /
#innodb_log_arch_dir = C:/xampp/xampp/mysql/data/ # innodb_log_arch_dir = C: / xampp / xampp / mysql / data /- Uncomment the lines and set innodb_buffer_pool_size up to 50% - 80% of RAM for optimization of InnoDB databases, try not to memory usage too high. -- Supprimez les lignes et mis en innodb_buffer_pool_size jusqu'à 50% - 80% de RAM pour l'optimisation des bases de données InnoDB, essayez de ne pas l'utilisation de la mémoire trop élevé.
#set-variable = innodb_buffer_pool_size=16M # set-variable = innodb_buffer_pool_size = 16M
#set-variable = innodb_additional_mem_pool_size=2M # set-variable = innodb_additional_mem_pool_size = 2M- Uncomment the lines and set innodb_log_file_size to 25% of InnoDB buffer pool size for optimisation. -- Supprimez les lignes et mis en innodb_log_file_size à 25% de buffer InnoDB taille d'optimisation.
#set-variable = innodb_log_file_size=5M # set-variable = innodb_log_file_size = 5M
#set-variable = innodb_log_buffer_size=8M # set-variable = innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit=1 # innodb_flush_log_at_trx_commit = 1
#set-variable = innodb_lock_wait_timeout=50 # set-variable = innodb_lock_wait_timeout = 50
After modification, the code for each lines should look like this: Après modification, le code pour chaque ligne devrait ressembler à ceci:
# skip-innodb # Skip-innodb
innodb_data_home_dir = C:/xampp/xampp/mysql/data/ innodb_data_home_dir = C: / xampp / xampp / mysql / data /
innodb_data_file_path = ibdata1:10M:autoextend innodb_data_file_path = ibdata1: 10M: autoextend
innodb_log_group_home_dir = C:/xampp/xampp/mysql/data/ innodb_log_group_home_dir = C: / xampp / xampp / mysql / data /
innodb_log_arch_dir = C:/xampp/xampp/mysql/data/ innodb_log_arch_dir = C: / xampp / xampp / mysql / data /set-variable = innodb_buffer_pool_size=16M set-variable = innodb_buffer_pool_size = 16M
set-variable = innodb_additional_mem_pool_size=2M set-variable = innodb_additional_mem_pool_size = 2Mset-variable = innodb_log_file_size=5M set-variable = innodb_log_file_size = 5M
set-variable = innodb_log_buffer_size=8M set-variable = innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit=1 innodb_flush_log_at_trx_commit = 1
set-variable = innodb_lock_wait_timeout=50 set-variable = innodb_lock_wait_timeout = 50
When InnoDB is not enable and MySQL uses MyISAM database storage engine instead, some errors that may be returned include: Lorsque InnoDB n'est pas actif et utilise MySQL MyISAM base de données du moteur au lieu de stockage, des erreurs que mai être retournés incluent:
Undefined GET property or variable in ‘A_Class’ class: A_Class_Object Non EEG propriété ou variable dans' A_Class classe: A_Class_Object
Fatal error: Call to undefined method Object::Function() in /xampp/htdocs/wwwroot/a_page.php on line 87 Fatal error: Call to undefined méthode Objet:: Fonction () in / xampp / htdocs / wwwroot / a_page.php en ligne 87
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni «tel quel», sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S’il vous plaît se référer à original English article l'article original en anglais whenever possible. chaque fois que possible.
Share and contribute or get technical support and help at Partagez et contribuer ou obtenir de l'aide technique et l'aide à My Digital Life Forums Ma vie numérique forums .
Related Articles Articles connexes
- Easily Set Up Web Server with XAMPP Mettre en place facilement serveur Web avec XAMPP
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 L'installation de Web Server sous Windows XP avec Apache2, MySQL4 et PHP5 - Partie 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Installation du serveur Web dans FreeBSD 6,0 avec Apache 2,2, 5,0 MySQL et PHP 5 - Partie 3
- WordPress Permalinks Does Not Work in xampp Setup WordPress permalinks ne fonctionne pas dans la configuration xampp
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database Activer l'enregistrement des requêtes Faible (log des requêtes lentes) dans la base de données MySQL
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 Installation du serveur Web dans FreeBSD 6,0 avec Apache 2,2, 5,0 MySQL et PHP 5 - Partie 5
- Change or Set MySQL Long Query Time Value for log-slow-queries Modifier ou à long Set MySQL Query Time qualité / log-slow-requêtes
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial Comment sauvegarde et de restauration (exportation et importation) Bases de données MySQL Tutorial
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 L'installation de Web Server sous Windows XP avec Apache2, MySQL4 et PHP5 - Partie 1
- MySQL Database Performance Tuning Best Practices Video Tutorial Base de données MySQL Performance Tuning meilleures pratiques didacticiel vidéo
















March 1st, 2008 03:08 1er mars, 2008 03:08
I needed to activate innoDB for using activeCollab. J'avais besoin d'activer pour utiliser InnoDB activeCollab. Your article helped me a lot. Votre article m'a beaucoup aidé. It was very well written.Thanx. Il a été très bien written.Thanx.
April 12th, 2008 21:54 Avril 12, 2008 21:54
This helps me a lot. Cela m'aide beaucoup. Thank you! Merci!
April 24th, 2008 23:47 Avril 24e, 2008 23:47
Very helpful, thank you! Très utile, je vous remercie!
May 4th, 2008 23:08 4e Mai, 2008 23:08
Thanks, you saved me a lots of searching Merci, vous m'a sauvé un grand nombre de recherche
May 15th, 2008 03:16 15ème Mai, 2008 03:16
I tried the above but whatever changes i made to my.cnf file in apachefriends folder, nothing was working. J'ai essayé le ci-dessus, mais quel que soit i modifications apportées au fichier my.cnf dans apachefriends dossier, rien n'a été travail. The following worked for me: La suite travaillé pour moi:
1. If you have MYSQL SYSTEM TRAY MONITOR installed on your machine (it is bundled with MYSQL QUERY BROWSER), launch it - you will see a little icon on the notification task bar on your windows machine. Si vous avez MYSQL Moniteur de plateau de système installé sur votre machine (il est livré avec requêtes MySQL Browser), lancez-le -, vous verrez une petite icône sur la barre des tâches de notification sur votre machine Windows.
2. Right click it and choose “Configure instance”. Cliquez avec le bouton droit et choisissez "Configurer exemple".
3. Select “Startup Variables” on the left item listings. Sélectionnez "Startup Variables sur les annonces.
4. Toggle to “InnoDB Parameters” tab. Basculer de "InnoDB Paramètres". Select “Activate InnoDB”. Sélectionnez "Activer InnoDB». You will notice all your settings are disabled.( to change your settings/uncomment as mentioned above, follow the next steps) Vous remarquerez que tous vos paramètres sont désactivés. (La modification de vos paramètres / décommenter comme indiqué ci-dessus, suivez les étapes suivantes)
5. At the footer of the InnoDB tab window you will see a label: Au pied de page de l'onglet InnoDB fenêtre vous verrez une étiquette:
Options file: C:\WINDOWS\my.ini Le fichier d'options: C: \ WINDOWS \ my.ini
Section: mysqld Section: mysqld
So this is where my configuration file was located. Donc, c'est là que mon fichier de configuration est situé. This ini file took precedent over the apachefriends folder > my.cnf. Ce fichier ini a pris le pas sur le dossier apachefriends> my.cnf. Locate this file and simply follow the uncommenting procedure of this post and save. Repérer ce dossier et il vous suffit de suivre la procédure décommentant de ce poste et mettre.
6. Stop the mysql service by right clicking on the Monitor tray again. Arrêter le service mysql par un clic droit sur l'écran de nouveau bac. Select “Shutdown Instance”. Sélectionnez "Shutdown instance".
7. Right click again and Select “Start Instance”. Cliquez avec le bouton droit de nouveau et cliquez sur "Démarrer instance".
8. Now you will see all your InnoDB variables settings. Maintenant, vous verrez tous vos paramètres variables InnoDB.
May 15th, 2008 03:25 15ème Mai, 2008 03:25
[...] http://www.mydigitallife.info [...]
May 22nd, 2008 22:01 22ème Mai, 2008 22:01
Thank you, your article was very comperhensive. Merci, votre article est très comperhensive.
It helped me alot. Il m'a beaucoup aidé.
May 25th, 2008 15:02 25ème Mai, 2008 15:02
For those who had my problem. Pour ceux qui ont mon problème. If you couldnt find a my.cnf file, instead you find a shortcut looking icon named ‘my’. Si vous ne pourrais trouver un fichier my.cnf, la place vous trouverez une icône de raccourci recherche appelé «mon».
This is the my.cnf file!! C'est le fichier my.cnf!
I couldnt right click ‘open with’, instead I opened it by opening a ext editor and file->open->my. Je ne pourrais droit cliquez sur "Ouvrir avec", au lieu j'ai ouvert par l'ouverture d'un poste rédacteur en chef et Fichier-> Ouvrir-> ma.
Then follow above. Ensuite, suivez ci-dessus.
May 25th, 2008 15:12 25ème Mai, 2008 15:12
Except my my.cnf was this: (it worked all the same) Sauf mon my.cnf était celle-ci: (il a travaillé tout de même)
#skip-innodb # skip-innodb
innodb_data_home_dir = “C:/xampp/mysql/” innodb_data_home_dir = "C: / xampp / mysql /"
innodb_data_file_path = ibdata1:10M:autoextend innodb_data_file_path = ibdata1: 10M: autoextend
innodb_log_group_home_dir = “C:/xampp/mysql/” innodb_log_group_home_dir = "C: / xampp / mysql /"
innodb_log_arch_dir = “C:/xampp/mysql/” innodb_log_arch_dir = "C: / xampp / mysql /"
innodb_buffer_pool_size = 16M innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M innodb_log_file_size = 5M
innodb_log_buffer_size = 8M innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1 innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50 innodb_lock_wait_timeout = 50
June 29th, 2008 16:55 29ème Juin, 2008 16:55
I have configured your instruction. J'ai configuré votre instruction. But, until my InnoDB database storage engine doesn’t working. Mais, jusqu'à ce que ma base de données InnoDB moteur de stockage ne pas travailler. Also i restarted my mysql sever. Aussi i redémarré mon mysql rompre.
July 2nd, 2008 18:30 2e Juillet, 2008 18:30
[...] Enable MySQL InnoDB Storage Engine Support in XAMPP Installation » My Digital Life Habilitando o InnoDB e permitindo o MySQL funcionar com recursos de relacionamento e orientação (tags: mysql innodb relacionamento) [...] [...] Activer MySQL InnoDB Storage Engine Support dans XAMPP Installation »Ma vie numérique Habilitando o e InnoDB ou MySQL permettant de fonctionner comme des ressources de relacionamento e orientação (tags: mysql innodb relacionamento) [...]
July 9th, 2008 20:13 9ème Juillet, 2008 20:13
hi, Salut,
i folowed the steps which you mentionen above, also i changed in my.cnf file and restarted the apachi and mysql. i folowed les mesures qui vous mentionen ci-dessus, aussi j'ai changé dans le fichier my.cnf et relancé le apachi et mysql. But i could not get innodb in the table type dropdown box. Mais je ne pouvais pas obtenir innodb dans le tableau de type liste déroulante.