[mysql] socket=/var/lib/mysql/mysql.sock # set mysql client default chararter default-character-set=utf8 # [mysqld] socket=/var/lib/mysql/mysql.sock bind-address=0.0.0.0 # set mysql server port port = 3306 #默认是3306,防止这种情况发生,可以避免使用3306mysql默认端口 # set mysql install base dir basedir=/usr/local/mysql # set the data store dir datadir=/usr/local/mysql/data # set the number of allow max connnection max_connections=200000 # set server charactre default encoding character-set-server=utf8 # the storage engine default-storage-engine=INNODB # lower_case_table_names=1 max_allowed_packet=16M explicit_defaults_for_timestamp=true