Bytemare Bytemare - 8 months ago 36
MySQL Question

Having a local my.cnf for mysql

Is it possible to have a local my.cnf file for MySQL in which can override global one which is in

. I am using Ubuntu 14.04. I installed mysql from


Yes, it is possible. Create a file called .my.cnf in your home folder. It can look something like this:

host        =<MySQL server ip>
user        =user
password    =pass