Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 730411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:54:31+00:00 2026-05-14T06:54:31+00:00

I created a new mysql database and i want to use foreign keys with

  • 0

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…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T06:54:32+00:00Added an answer on May 14, 2026 at 6:54 am

    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…

    Comment the following if you are using InnoDB tables

    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/"
    

    You can set .._buffer_pool_size up to 50 – 80 %

    of RAM but beware of setting memory usage too high

    innodb_buffer_pool_size = 16M
    innodb_additional_mem_pool_size = 2M
    

    Set .._log_file_size to 25 % of buffer pool size

    innodb_log_file_size = 5M
    innodb_log_buffer_size = 8M
    innodb_flush_log_at_trx_commit = 1
    innodb_lock_wait_timeout = 50
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

PHP mysql database I have created a follow on question to this one here
I'm having problems updating a mysql database. I want to run this script on
I am new to Django I have a MySQL database - which I want
I m new to use ankhSVN and having issues. I have created some new
This is happening on Vista. I created a new dialog based MFC project to
I use Hibernate/Spring and a MySQL Database for my data management. Currently I display
So I am new to database MySql and Database configuration period. I originally deployed
I am very, very new to MYSQL.I tried to create a table named option.
I created a new SharePoint portal for testing purposes using a manually added HOSTS
I created a new email box for general support questions. When I try to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.