Enable MySQL InnoDB Storage Engine Support in XAMPP Installation Ativar MySQL motor de armazenamento InnoDB apoio na instalação XAMPP
XAMPP from Apache Friends XAMPP Apache de amigos is a collection of free open source apps that make it easy to install Apache distribution containing MySQL, PHP and Perl. é uma coleção de fonte aberta livre aplicativos que facilitam a instalação Apache distribuição contendo MySQL, PHP e Perl. There are four XAMPP distributions for Windows, Linux, Mac OS X and Solaris. Há quatro XAMPP distribuições para Windows, Linux, Mac OS X e 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. Para configurar um servidor web Apache com XAMPP, basta baixar e extrair XAMPP, eo servidor web Apache HTTPD está pronta depois de mais uma ou duas auto-executar 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. Não há alterações no registro do Windows (a menos que você estiver usando Viúvas instalador versão do XAMPP) e não é necessário qualquer editar arquivos de configuração.
However, by default, InnoDB MySQL database storage engine is not enabled in the my.cnf configuration file. No entanto, por padrão, o MySQL InnoDB mecanismo de armazenamento de dados não está ativado no arquivo de configuração 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. Se um webmaster planos para utilizar InnoDB funções, tal como para muitos um ou muitos para muitos relacionamentos na tabela chave estrangeira constrangimentos, ou transação segura com comandos como commit, rollback e crash recuperação capacidades.
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. Para ativar o apoio do servidor MySQL com motor de armazenamento InnoDB, localizar o "my.cnf" config file (normalmente em / installation_path / xampp / mysql / bin / diretório), e editar o my.cnf com qualquer editor de texto como o vi.
Search and locate each of the following lines (except the lines in italic where they’re comments): Pesquisa e localizar cada uma das seguintes linhas (com excepção das linhas em itálico quando eles são comentários):
- Comment the following line to unskip and use InnoDB -- Comentar a seguinte linha ao unskip e usar InnoDB
skip-innodb skip-InnoDB- Uncomment the following options for InnoDB database if you are using InnoDB tables. -- Descomentando a seguinte opções de banco de dados InnoDB se você estiver usando tabelas 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. -- Descomentando a linha e definir innodb_buffer_pool_size até 50% - 80% de memória RAM para a otimização do InnoDB bases de dados, tente não memória muito alto.
#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. -- Descomentando a linha e definir innodb_log_file_size a 25% do tamanho de buffer InnoDB optimização.
#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: Após a modificação, o código de cada linha deve ser semelhante a este:
# 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: Quando o InnoDB não é permitir e armazenamento de dados MySQL MyISAM usa motor em vez disso, alguns erros que podem ser devolvidos incluem:
Undefined GET property or variable in ‘A_Class’ class: A_Class_Object Indefinido GET propriedade ou variável em 'A_Class' turma: 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étodo Object:: Function () in / xampp / htdocs / wwwroot / a_page.php on line 87
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- Easily Set Up Web Server with XAMPP Facilmente criado com o servidor web XAMPP
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 Instalar Web Server no Windows XP com Apache2, PHP5 e MySQL4 - Parte 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 Instalando Web Server no FreeBSD 6,0 a 2,2 Apache, MySQL e 5,0 PHP 5 - Parte 3
- WordPress Permalinks Does Not Work in xampp Setup WordPress permalinks não funciona na configuração xampp
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database Ativar registro de Consultas Lento (Slow Query Log) no MySQL Database
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 Instalando Web Server no FreeBSD 6,0 a 2,2 Apache, MySQL e 5,0 PHP 5 - Parte 5
- Change or Set MySQL Long Query Time Value for log-slow-queries Alterar ou definir o MySQL Query Long Time Valor para log-slow-queries
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial Como a Backup e Restauração (de Importação e Exportação) Bancos de dados MySQL Tutorial
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 Instalar Web Server no Windows XP com Apache2, PHP5 e MySQL4 - Parte 1
- MySQL Database Performance Tuning Best Practices Video Tutorial Banco de dados MySQL Performance Tuning melhores práticas vídeo tutorial













March 1st, 2008 03:08 1 de março de 2008 03:08
I needed to activate innoDB for using activeCollab. Eu necessário para ativar InnoDB para a utilização de activeCollab. Your article helped me a lot. Seu artigo me ajudou muito. It was very well written.Thanx. Foi muito bem written.Thanx.
April 12th, 2008 21:54 12 de abril de 2008 21:54
This helps me a lot. Isso me ajuda muito. Thank you! Obrigado!
April 24th, 2008 23:47 24 de abril de 2008 23:47
Very helpful, thank you! Muito útil, muito obrigado!
May 4th, 2008 23:08 4 de maio de 2008 23:08
Thanks, you saved me a lots of searching Obrigado, você salvou-me um monte de busca
May 15th, 2008 03:16 15 de maio de 2008 03:16
I tried the above but whatever changes i made to my.cnf file in apachefriends folder, nothing was working. Eu tentei o acima exposto, mas seja qual for alterações que fiz no my.cnf no apachefriends pasta, nada foi trabalhar. The following worked for me: Os seguintes trabalhou para mim:
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. Se você tem MYSQL MONITOR bandeja de sistema instalado na sua máquina (é empacotado com MySQL Query Browser), lançá-la - você verá um pequeno ícone na barra de tarefas a notificação em sua máquina Windows.
2. Right click it and choose “Configure instance”. Botão direito nele e escolher "Configurar exemplo".
3. Select “Startup Variables” on the left item listings. Selecione "Startup Variables" à esquerda item listagens.
4. Toggle to “InnoDB Parameters” tab. Alternar para "InnoDB Parâmetros" no menu. Select “Activate InnoDB”. Selecione "Ativar InnoDB". You will notice all your settings are disabled.( to change your settings/uncomment as mentioned above, follow the next steps) Você irá notar todas as suas configurações são deficientes. (Para alterar as suas configurações / descomentar como mencionado acima, siga os próximos passos)
5. At the footer of the InnoDB tab window you will see a label: No rodapé da janela do InnoDB guia você verá um marcador:
Options file: C:\WINDOWS\my.ini Opções de arquivo: C: \ WINDOWS \ my.ini
Section: mysqld Seção: mysqld
So this is where my configuration file was located. Portanto, este é o meu arquivo de configuração onde foi localizado. This ini file took precedent over the apachefriends folder > my.cnf. Esta ini precedente tomou ao longo dos apachefriends pasta> my.cnf. Locate this file and simply follow the uncommenting procedure of this post and save. Localize este arquivo e siga as descomentando procedimento deste posto e salvar.
6. Stop the mysql service by right clicking on the Monitor tray again. Parar o serviço mysql clicando com o botão direito Monitor bandeja novamente. Select “Shutdown Instance”. Selecione "Encerrar Instância".
7. Right click again and Select “Start Instance”. Botão direito novamente e selecione "Start Instância".
8. Now you will see all your InnoDB variables settings. Agora, você vai ver todas as suas configurações variáveis InnoDB.
May 15th, 2008 03:25 15 de maio de 2008 03:25
[...] http://www.mydigitallife.info [...]
May 22nd, 2008 22:01 22 de maio de 2008 22:01
Thank you, your article was very comperhensive. Obrigado, o seu artigo foi muito comperhensive.
It helped me alot. Ele me ajudou muito.
May 25th, 2008 15:02 25 de maio de 2008 15:02
For those who had my problem. Para aqueles que tinha o meu problema. If you couldnt find a my.cnf file, instead you find a shortcut looking icon named ‘my’. Se você não poderia encontrar um arquivo my.cnf, em vez você encontrará um ícone de atalho procurando chamado 'meu'.
This is the my.cnf file!! Este é o my.cnf!
I couldnt right click ‘open with’, instead I opened it by opening a ext editor and file->open->my. Eu não poderia direito clique em 'Abrir com', em vez eu abri-lo a abrir um arquivo e ext editor-> abrir-> minha.
Then follow above. Então siga acima.
May 25th, 2008 15:12 25 de maio de 2008 15:12
Except my my.cnf was this: (it worked all the same) Exceto minha my.cnf foi este: (todos os que trabalharam o mesmo)
#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 de junho de 2008 16h55
I have configured your instruction. Tenho configurado sua instrução. But, until my InnoDB database storage engine doesn’t working. Mas, até o meu banco de dados InnoDB armazenamento motor não funciona. Also i restarted my mysql sever. I também reiniciou meu mysql separam.
July 2nd, 2008 18:30 2 de julho de 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) [...] [...] Ativar MySQL motor de armazenamento InnoDB Suporte em XAMPP Instalação »My Life Digital Habilitando o InnoDB e permitindo o MySQL funcionar com Recursos de relacionamento e orientação (tags: mysql InnoDB relacionamento) [...]
July 9th, 2008 20:13 9 de julho de 2008 20:13
hi, oi,
i folowed the steps which you mentionen above, also i changed in my.cnf file and restarted the apachi and mysql. i folowed os passos que você mentionen acima, também eu mudei em my.cnf e reiniciado o apachi e mysql. But i could not get innodb in the table type dropdown box. Mas eu não poderia obter na tabela InnoDB tipo caixa suspensa.