---
title: "mysql freebsd my.cnf 设置"
author: "waveeee"
date: "2011-10-01T21:29:48Z"
tags: []
categories: ["数据库"]
slug: "mysql-freebsd-my-cnf"
draft: false
lastmod: "2011-10-01T21:29:48Z"
id: 1184374
url: "https://waveeee.iteye.com/blog/1184374"
---

[The Weblog of Titus Barik](http://www.barik.net/)

[Let the love of learning rule humanity.](http://www.barik.net/)

### [my.cnf on FreeBSD 7](http://www.barik.net/archive/2008/05/26/114616/)

[Uncategorized](http://www.barik.net/archive/category/uncategorized/ "View all posts in Uncategorized") — @ Monday, May 26, 2008

[FreeBSD](http://www.freebsd.org/) does not automatically include a default `my.cnf` for [MySQL](http://www.mysql.com/). Instead, a set of sample configuration files can be found under `/usr/local/share/mysql`. These configuration files include `my-small.cnf`, `my-medium.cnf`, `my-large.cnf`, `my-innodb-heavy-4G`, and `my-huge.cnf`. The appropriate file can be copied and used as a template configuration by performing the following actions:

```
cd /usr/local/share/mysql/
cp /usr/local/share/mysql/mysql-large.cnf /usr/local/etc/my.cnf
/usr/local/etc/rc.d/mysql-server restart
```

```

```

```
http://www.barik.net/archive/2008/05/26/114616/
```