Reputation: 11010
I created a new mysql database and i want to use foreign keys with it... I googled and found out this...
InnoDB is one of MySQL storage engines, it supports transactions, row-level locking, and foreign-keys. However, by default, InnoDB is not enabled by XAMPP. To enable it, locate the my.cnf configuration file (normally in C:/xampp/mysql/bin directory) and search for the following lines:
# Comment the following if you are using InnoDB tables
But the path C:/xampp/mysql/bin directory
in my system doesn't seem to have such a file...
Look at this image http://img691.imageshack.us/img691/524/mysqln.jpg
Where is my.cnf file?
Any suggestion...
Upvotes: 1
Views: 7097
Reputation: 35268
just drag My
icon
alt text http://img24.imageshack.us/img24/7195/mycnf.jpg
to notepad and remove comments from these lines... I have removed comments and posted answer for you...
skip-innodb
innodb_data_home_dir = "C:/xampp/mysql/"
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = "C:/xampp/mysql/"
innodb_log_arch_dir = "C:/xampp/mysql/"
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
Upvotes: 3