|
由于配置选项繁多。配置方式多样。有时候一时想不起来是否这样配。 故此 把 我最近的my.cnf 发出来以供参考 [root@mysqldb ~]# cat /etc/my.cnf # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html [client] #prompt=(\\u@\\h) [\\d]>\\_ [mysql] prompt=(\\u@\\h) [\\d]>\\_
#ssl-ca=/var/lib/mysql/newcerts/ca-cert.pem #ssl-cert=/var/lib/mysql/newcerts/client-cert.pem #ssl-key=/var/lib/mysql/newcerts/client-key.pem [mysqld] #AUDIT-LOG-OPTION plugin_dir=/usr/lib64/mysql/plugin #audit-log=FORCE_PLUS_PERMANENT #audit_log_rotate_on_size #audit_log_file #plugin-load=audit_log.so
#AUTH-PASSWORD #plugin-load=authentication_pam.so #plugin-load=auth_test_plugin.so #plugin-load=authentication_pam.so #plugin-load=validate_password.so
#DEFAULT-STORAGE-ENGINE-OPTION #default-storage-engine=MyISAM
#GERNER-LOG-OPTION #general_log
#SOLW_QUERY_OPTION #slow_query_log #long_query_time=10
#AUTOCOMIT #autocommit=0
#TRANSCATION-IOLATION-OPTION #transaction-isolation=READ-UNCOMMITTED
#LOG_BIN_OPTIOIN #expire_logs_days=1 #log_bin
#FORGET THE ROOT PASSWORD #skip-grant-tables #default-authentication-plugin=mysql_native_password #default-authentication-plugin=mysql_old_password
##SSL_CONNECT ssl ssl-ca=/var/lib/mysql/newcerts/ca-cert.pem ssl-cert=/var/lib/mysql/newcerts/server-cert.pem ssl-key=/var/lib/mysql/newcerts/server-key.pem
##EVENT_OPTION
#prompt=(\\u@\\h) [\\d]>\\_ # # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0
# Recommended in standard MySQL setup #sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid #pid-file=/var/lib/mysql/mysqldb.pid
如有不明白的 可以查询参考手册 : 在此 放出参考手册: 官网: http://dev.mysql.com/doc/ 360云盘: http://yunpan.cn/cAybQNAPKMTxS 提取码 b3ab
|
|