Lost the my.cnf file (MySQL server configuration) on your new operating system? Here's a quick note on where to look for it depending on the OS:
Debian (and its clone
ubuntu): /etc/mysql/my.cnf
CentOS (or
RedHat): /etc/my.cnf
FreeBSD: nope, it's not there by default :) just isn't.
To get this file on FreeBSD: go to the /usr/local/share/mysql/ folder and copy whichever one you like to /usr/local/usr/my.cnf:
$ cd /usr/local/share/mysql/
$ sudo cp my-huge.cnf /usr/local/etc/my.cnf
In this example we took the my-huge.cnf file to copy, but you can take any file you like that suits your customization of the settings.
Applies to: MySQL 5.x; Debian/ubuntu, CentOS/RedHat, FreeBSD
Comments