Changing MySQL data path?

Associate
Joined
10 Dec 2008
Posts
510
Location
127.0.0.1:80
To change the location that database data is stored in MySQL do I need to create my.conf and then edit it or can MySQL be told to store the data somewhere else by another method?
 
What if I can't find my.cnf? I've looked in all the suggested directories, I can only imagine it either doesn't exist of the guy who installed MySQL had it in another location.
 
If I do create a new my.cnf, how will MySQL know to look for it?

I have some copies of my.cnf-small, large etc that came with the MySQL 5 installation, I take it that just taking the size off of the end and editing my own details into these configuration files would work?
 
Back
Top Bottom