https://wiki.uniformserver.com/api.php?action=feedcontributions&user=Kisalay&feedformat=atomThe Uniform Server Wiki - User contributions [en]2024-03-29T14:42:26ZUser contributionsMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=Installing_InnoDB&diff=3684Installing InnoDB2009-03-27T10:00:16Z<p>Kisalay: New page: A lot of users like me have had issues enabling (or as you can call it installing) InnoDB within MySQL. InnoDB support is available in MySQL as a lot of users on the forum pointed out, but...</p>
<hr />
<div>A lot of users like me have had issues enabling (or as you can call it installing) InnoDB within MySQL. InnoDB support is available in MySQL as a lot of users on the forum pointed out, but not enabled by default. To enable it, please follow the instructions below.<br />
<br /><br />
1. Open the W:\usr\local\mysql\bin\my-small.cnf file in Notepad or any other text editor of your choice. <br /><br />
2. Make sure the following lines appear as shown below - <br /><br />
<br />
&#35; Uncomment the following if you are NOT using innodb tables <br /><br />
&#35;skip-innodb <br /><br />
<br />
&#35; Uncomment the following if you are using Innobase tables <br /><br />
innodb_data_file_path = ibdata1:100M <br /><br />
innodb_data_home_dir = /usr/local/mysql/data/ <br /><br />
innodb_log_group_home_dir = /usr/local/mysql/data/ <br /><br />
innodb_log_arch_dir = /usr/local/mysql/data/ <br /><br />
set-variable = innodb_mirrored_log_groups=1 <br /><br />
set-variable = innodb_log_files_in_group=3 <br /><br />
set-variable = innodb_log_file_size=5M <br /><br />
set-variable = innodb_log_buffer_size=8M <br /><br />
innodb_flush_log_at_trx_commit=1 <br /><br />
innodb_log_archive=0 <br /><br />
set-variable = innodb_buffer_pool_size=16M <br /><br />
set-variable = innodb_additional_mem_pool_size=2M <br /><br />
set-variable = innodb_file_io_threads=4 <br /><br />
set-variable = innodb_lock_wait_timeout=50 <br /><br />
<br />
3. You can modify the values to suit your needs, but the default ones work great. <br /><br />
4. Restart the server. <br /><br />
5. Go to PHPMyAdmin and click on "Show MySQL Runtime Information". <br /><br />
6. Click on InnoDB hyperlink which will take you to a lower part of the same page. Just under that information table, you will find a link for detailed "InnoDB Status". <br /><br />
7. On the top, what you are most likely to see is "InnoDB is disabled for this server". If not, you are good to go. <br /><br />
8. To resolve the issue in #7, shutdown the server once more. <br /><br />
9. Go to W:\usr\local\mysql\data\ and delete (or at least temporarily move) the files beginning with "ib_logfile*" and "ibdata*" where * indicates a number. <br /><br />
10. Restart the server, and follow steps 5-7 above. You should hopefully be able to now see "InnoDB is available on this MySQL server". <br /><br />
<br />
That's it. Enjoy.</div>Kisalay