1. 程式人生 > >centOS誤刪mysql 的my.cnf

centOS誤刪mysql 的my.cnf

//這樣寫的前提時你的mysql裝在 /usr/local/mysql

mysql指的時你把解壓後的mysql包改為mysql

[mysqld]

port=3306 datadir=/usr/local/mysql/data

socket=/usr/local/mysql/mysql.sock

user=mysql

max_connections=3

Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

設定忽略大小寫

lower_case_table_names = 1

指定編碼

character-set-server=utf8

collation-server=utf8_general_ci

開啟ip繫結

bind-address = 0.0.0.0

[mysqld_safe]

log-error=/var/log/mysqld.log

pid-file=/var/