Enable MySQL InnoDB Storage Engine Support in XAMPP Installation Consentire MySQL InnoDB motore di memorizzazione sostegno in XAMPP installazione
XAMPP from Apache Friends XAMPP da Apache amici is a collection of free open source apps that make it easy to install Apache distribution containing MySQL, PHP and Perl. è una raccolta di sorgente aperto libero applicazioni che la rendono facile da installare la distribuzione di Apache MySQL, PHP e Perl. There are four XAMPP distributions for Windows, Linux, Mac OS X and Solaris. Ci sono quattro XAMPP distribuzioni per 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. Di istituire un web server Apache con XAMPP, è sufficiente scaricare ed estrarre XAMPP, e httpd Apache web server è pronto dopo uno o due di più l'auto-esecuzione di script. 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. Non vi sono modifiche al Registro di sistema di Windows (a meno che non si sta utilizzando vedove di installazione versione di XAMPP) e non è necessario modificare qualsiasi file di configurazione.
However, by default, InnoDB MySQL database storage engine is not enabled in the my.cnf configuration file. Tuttavia, per impostazione predefinita, database MySQL InnoDB motore di memorizzazione non è attivato nel file di configurazione 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 un webmaster progetta di utilizzare InnoDB caratteristiche, come ad esempio uno a molti o molti-a-molti rapporti di tabella a vincoli di chiave esterna, o una transazione sicura-comandi come impegnarsi, di ripristino e recupero crash capacità.
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. Per attivare il supporto di server MySQL InnoDB a motore di memorizzazione, individuare la "my.cnf" file di configurazione (di solito / installation_path / XAMPP / mysql / bin / directory) e modificare il my.cnf con un qualsiasi editor di testo come ad esempio vi.
Search and locate each of the following lines (except the lines in italic where they’re comments): Di ricerca e di individuare ciascuno dei seguenti linee (eccetto le linee in corsivo in cui sono commenti):
- Comment the following line to unskip and use InnoDB -- Commenta la seguente riga al unskip e utilizzare InnoDB
skip-innodb skip-InnoDB- Uncomment the following options for InnoDB database if you are using InnoDB tables. -- Rimuovere le seguenti opzioni per InnoDB database se si sta utilizzando le tabelle 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. -- Rimuovere le linee e impostare innodb_buffer_pool_size fino al 50% - 80% di RAM per l'ottimizzazione di InnoDB, basi di dati, cercare di non utilizzo della memoria troppo elevato.
#set-variable = innodb_buffer_pool_size=16M # set-variabile = innodb_buffer_pool_size = 16M
#set-variable = innodb_additional_mem_pool_size=2M # set-innodb_additional_mem_pool_size variabile = = 2M- Uncomment the lines and set innodb_log_file_size to 25% of InnoDB buffer pool size for optimisation. -- Rimuovere le linee e innodb_log_file_size fissato al 25% di InnoDB piscina dimensione del buffer per l'ottimizzazione.
#set-variable = innodb_log_file_size=5M # set-innodb_log_file_size variabile = = 5M
#set-variable = innodb_log_buffer_size=8M # set-innodb_log_buffer_size variabile = = 8M
#innodb_flush_log_at_trx_commit=1 # innodb_flush_log_at_trx_commit = 1
#set-variable = innodb_lock_wait_timeout=50 # set-innodb_lock_wait_timeout variabile = = 50
After modification, the code for each lines should look like this: Dopo la modifica, il codice per ciascuna delle linee dovrebbe essere simile al seguente:
# 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-variabile = innodb_buffer_pool_size = 16M
set-variable = innodb_additional_mem_pool_size=2M set-innodb_additional_mem_pool_size variabile = = 2Mset-variable = innodb_log_file_size=5M set-innodb_log_file_size variabile = = 5M
set-variable = innodb_log_buffer_size=8M set-innodb_log_buffer_size variabile = = 8M
innodb_flush_log_at_trx_commit=1 innodb_flush_log_at_trx_commit = 1
set-variable = innodb_lock_wait_timeout=50 set-innodb_lock_wait_timeout variabile = = 50
When InnoDB is not enable and MySQL uses MyISAM database storage engine instead, some errors that may be returned include: InnoDB quando non è consentire e MySQL usa MyISAM banca dati del motore di stoccaggio, invece, alcuni errori che possono essere restituiti includono:
Undefined GET property or variable in ‘A_Class’ class: A_Class_Object Undefined GET proprietà o variabile in '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 metodo Oggetto:: Funzione () 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: Questa è una pagina tradotta macchina che è fornito "così com'è" senza alcuna garanzia. Machine translation may be difficult to understand. Traduzione automatica può essere difficile da capire. Please refer to Si prega di fare riferimento a original English article articolo originale in lingua inglese whenever possible. quando possibile.
Share and contribute or get technical support and help at Condividere e contribuire o ottenere supporto tecnico e assistenza in My Digital Life Forums La mia vita digitale Forum .
Related Articles Articoli correlati
- Easily Set Up Web Server with XAMPP Facilmente istituire server Web con XAMPP
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 Installare server Web in Windows XP con 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 L'installazione di server Web in FreeBSD 6,0 con Apache 2,2, 5,0 MySQL e PHP 5 - Parte 3
- WordPress Permalinks Does Not Work in xampp Setup WordPress permalink non funziona nel programma di installazione di XAMPP
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database Attivare la registrazione di Slow query (query lente Accedi) nel Database MySQL
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 L'installazione di server Web in FreeBSD 6,0 con Apache 2,2, 5,0 MySQL e PHP 5 - Parte 5
- Change or Set MySQL Long Query Time Value for log-slow-queries Modificare o impostare a lungo MySQL Query Time Rapporto di log-slow-query
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial Come fare il backup e ripristino (esportazione e importazione) basi di dati di MySQL Tutorial
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 Installare server Web in Windows XP con Apache2, PHP5 e MySQL4 - Parte 1
- MySQL Database Performance Tuning Best Practices Video Tutorial MySQL database performance tuning migliori pratiche video tutorial



















March 1st, 2008 03:08 1 ° marzo 2008 03:08
I needed to activate innoDB for using activeCollab. Avevo bisogno di attivare per l'utilizzo di InnoDB activeCollab. Your article helped me a lot. Il vostro articolo mi ha aiutato molto. It was very well written.Thanx. E 'stato molto ben written.Thanx.
April 12th, 2008 21:54 12 aprile 2008 21:54
This helps me a lot. Questo mi aiuta molto. Thank you! Grazie!
April 24th, 2008 23:47 24 aprile 2008 23:47
Very helpful, thank you! Molto utile, grazie!
May 4th, 2008 23:08 4 maggio 2008 23:08
Thanks, you saved me a lots of searching Grazie, è stato salvato me un sacco di ricerca
May 15th, 2008 03:16 Maggio 15, 2008 03:16
I tried the above but whatever changes i made to my.cnf file in apachefriends folder, nothing was working. Ho cercato di cui sopra, ma ciò che ho fatto modifiche al file in my.cnf Apachefriends cartella, nulla è stato lavoro. The following worked for me: Le seguenti lavorato per me:
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 si dispone di MySQL System Tray Monitor installato sul tuo computer (è fornito in bundle con MySQL Query Browser), la avvierà - vedrete un po 'l'icona sulla barra delle applicazioni di notifica sulla vostra macchina Windows.
2. Right click it and choose “Configure instance”. Diritto fare clic su di esso e scegliere "Configurazione di esempio".
3. Select “Startup Variables” on the left item listings. Seleziona "Variabili di avvio" a sinistra inserzioni.
4. Toggle to “InnoDB Parameters” tab. Passare a "Parametri di InnoDB". Select “Activate InnoDB”. Selezionare "Attiva InnoDB". You will notice all your settings are disabled.( to change your settings/uncomment as mentioned above, follow the next steps) Si noterà tutte le impostazioni sono disattivati. (Per modificare le impostazioni / decommentare come già detto, seguire i passi successivi)
5. At the footer of the InnoDB tab window you will see a label: A pie 'di pagina della scheda InnoDB finestra vedrete una etichetta:
Options file: C:\WINDOWS\my.ini File di opzioni: C: \ WINDOWS \ my.ini
Section: mysqld Sezione: mysqld
So this is where my configuration file was located. Quindi, se questo è il mio file di configurazione è stato collocato. This ini file took precedent over the apachefriends folder > my.cnf. Questo file ini ha precedenti negli Apachefriends cartella> my.cnf. Locate this file and simply follow the uncommenting procedure of this post and save. Individuare il file e segui la procedura uncommenting di questo post e salvare.
6. Stop the mysql service by right clicking on the Monitor tray again. Arrestare il servizio MySQL facendo clic destro sulla barra delle applicazioni di nuovo Monitor. Select “Shutdown Instance”. Seleziona "Arresto grado".
7. Right click again and Select “Start Instance”. Diritto di nuovo e fare clic su Seleziona "Start grado".
8. Now you will see all your InnoDB variables settings. Ora vedrete tutti i vostri InnoDB variabili impostazioni.
May 15th, 2008 03:25 Maggio 15, 2008 03:25
[...] http://www.mydigitallife.info [...]
May 22nd, 2008 22:01 22 maggio 2008 22:01
Thank you, your article was very comperhensive. Grazie, il tuo articolo è stato molto comperhensive.
It helped me alot. Essa mi ha aiutato molto.
May 25th, 2008 15:02 25 maggio 2008 15:02
For those who had my problem. Per coloro che ha avuto il mio problema. If you couldnt find a my.cnf file, instead you find a shortcut looking icon named ‘my’. Se si potrei trovare un file my.cnf, invece di trovare un collegamento alla ricerca icona denominata 'mio'.
This is the my.cnf file!! Questo è il file my.cnf!!
I couldnt right click ‘open with’, instead I opened it by opening a ext editor and file->open->my. Io potrei destra fai clic su 'Apri con', invece ho aperto è di apertura di un editor di int e File-> Apri-> mia.
Then follow above. Quindi seguire sopra.
May 25th, 2008 15:12 25 maggio 2008 15:12
Except my my.cnf was this: (it worked all the same) Tranne il mio my.cnf è stato questo: (è lavorato tutti lo stesso)
#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 giugno 2008 16:55
I have configured your instruction. Ho configurato il vostro insegnamento. But, until my InnoDB database storage engine doesn’t working. , Ma, fino a quando il mio InnoDB immagazzinamento in basi di dati motore non funziona. Also i restarted my mysql sever. Anche i miei riavviato mysql severa.
July 2nd, 2008 18:30 2 luglio 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) [...] [...] Attiva MySQL InnoDB Storage Engine supporto di installazione in XAMPP »Il mio Digital Life Habilitando o InnoDB e porterà a MySQL o funcionar com rapporto delle risorse e orientação (tag: mysql InnoDB rapporto) [...]
July 9th, 2008 20:13 9 luglio 2008 20:13
hi, Salve,
i folowed the steps which you mentionen above, also i changed in my.cnf file and restarted the apachi and mysql. i folowed i passi che si mentionen sopra, ho cambiato anche in my.cnf file e riavviato il Apachi e mysql. But i could not get innodb in the table type dropdown box. Ma non sono riuscito a far InnoDB nella tabella tipo casella a discesa.