重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3427|回复: 1
打印 上一主题 下一主题

[原创] 实验mysql 功能的配置文件

[复制链接]
跳转到指定楼层
楼主
发表于 2014-11-12 20:15:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
 由于配置选项繁多。配置方式多样。有时候一时想不起来是否这样配。
故此 把 我最近的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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2014-11-12 20:16:06 | 只看该作者
 上述 配置需要那个。只需要 把#去掉。则可使用。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-28 18:12 , Processed in 0.133393 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表