share mysql data folder between linux and windows
Posted: 16. October 2006 22:09
I have a dual boot with windows and linux. On both I have xampp running and I configured the httpd.conf file so that they use the same httpdoc folder.
But I allso want them to use the same database.
I found that I need to change datadir in my.cnf
But in my linux install of xampp there is no datadir in the my.cnf file.
the only reference to the data dir was this:
so I changed those to the mounted fat partition directory.
But when I restart MYSQL it still uses the old databases and datadir.
It looks like my.cnf is ignored.
Can anyone help me?
thanks
But I allso want them to use the same database.
I found that I need to change datadir in my.cnf
But in my linux install of xampp there is no datadir in the my.cnf file.
the only reference to the data dir was this:
- Code: Select all
skip-innodb
innodb_data_home_dir = /opt/lampp/var/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /opt/lampp/var/mysql/
innodb_log_arch_dir = /opt/lampp/var/mysql/
so I changed those to the mounted fat partition directory.
But when I restart MYSQL it still uses the old databases and datadir.
It looks like my.cnf is ignored.
Can anyone help me?
thanks