Linux下MySQL5.5和MySQL5.0的my.cnf文件内容

下面是MySQL5.5的/etc/my.cnf文件内容:

[root@szxdb etc]# more my.cnf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql

skip-name-resolve
character_set_server = utf8

# Default to using old password format for compatibility withmysql 3.x
# clients (those using the mysqlclient10 compatibilitypackage).
old_passwords=1

wait_timeout=315360000

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

[client]
default-character-set=utf8

你可能感兴趣的:(Linux下MySQL5.5和MySQL5.0的my.cnf文件内容)