linux下mysql5.7的my.cnf在原有的基础上设置了utf8字符集

原创 2016年08月30日 23:48:29
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

[client]
default-character-set = utf8

[mysql]
default-character-set = utf8

[mysqld_safe]
socket        = /var/run/mysqld/mysqld.sock
nice        = 0

[mysqld]
#
# * Basic Settings
#
user        = mysql
pid-file    = /var/run/mysqld/mysqld.pid
socket        = /var/run/mysqld/mysqld.sock
port        = 3306
basedir        = /usr
datadir        = /var/lib/mysql
tmpdir        = /tmp
lc-messages-dir    = /usr/share/mysql
skip-external-locking
character-set-server = utf8
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address        = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size        = 16M
max_allowed_packet    = 16M
thread_stack        = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover-options  = BACKUP
#max_connections        = 100
#table_cache            = 64
#thread_concurrency     = 10
#
# * Query Cache Configuration
#
query_cache_limit    = 1M
query_cache_size        = 16M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
#log_slow_queries    = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
#       other settings you may need to change.
#server-id        = 1
#log_bin            = /var/log/mysql/mysql-bin.log
expire_logs_days    = 10
max_binlog_size   = 100M
#binlog_do_db        = include_database_name
#binlog_ignore_db    = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
版权声明:本文为博主原创文章,未经博主允许不得转载。

MySql5.7 配置文件 my.cnf 设置

参考mysql官方文档注释Mysql5.7配置中的常用参数
  • gzt19881123
  • gzt19881123
  • 2016年09月20日 12:44
  • 7935

MySQL的my.cnf文件(解决5.7.18下没有my-default.cnf)

官网说:从5.7.18开始不在二进制包中提供my-default.cnf文件。参考:https://dev.mysql.com/doc/refman/5.7/en/binary-installatio...
  • djCode
  • djCode
  • 2017年11月24日 10:16
  • 1789

mysql 5.6 5.7 my.cnf配置文件

# author: jiangchengyao@gmail.com This configration file opts for MySQL 5.6 and 5.7. If you hav...
  • minghuiguangdian
  • minghuiguangdian
  • 2017年09月12日 09:40
  • 517

一分钟完成MySQL5.7安装部署

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://suifu.blog.51cto.com/9167728/1855415 ...
  • carry9148
  • carry9148
  • 2016年09月22日 17:19
  • 1568

MySql5.7配置文件my.cnf设置

# MySql5.7配置文件my.cnf设置 [client] port = 3306 socket = /tmp/mysql.sock [mysqld] #############...
  • qq_24134129
  • qq_24134129
  • 2018年01月05日 20:53
  • 166

网上流传的 基于MySQL 5.6和5.7的配置文件模板

网上流传的 基于MySQL 5.6和5.7的配置文件模板 学习用 转自:  http://geek.csdn.net/news/detail/41002 [client] user=david...
  • remote_roamer
  • remote_roamer
  • 2016年06月29日 15:07
  • 3008

MySQL5.7.9免安装版配置方法

1. 修改MySQL的配置文件(my.ini),在[mysqld]下添加一行skip-grant-tables 2. mysql 重启后,即可直接用 mysql -u root -p ...
  • frt007
  • frt007
  • 2015年12月05日 10:45
  • 31258

MySQL my.cnf 参数 详解

[client] port    = 3306    //客户端端口号为3306 socket  = /tmp/mysql.sock  //套接字文件(sockets),这种文件一般用在网络上的资...
  • wulantian
  • wulantian
  • 2012年12月05日 16:09
  • 7778

mysql5.7.9主从同步配置

mysql5.7.9主从同步配置mysql579主从同步配置 环境 参考 配置 master配置 slave配置 master创建复制用户 获取master日志坐标 创建master数据快照 创建sa...
  • tanweii163
  • tanweii163
  • 2015年12月10日 11:29
  • 3992

CentOS6.5安装MySQL5.6 过程记录

刚开始,还不太懂,直接上了MySQL5.7版本的二进制安装,结果遇到了各种问题,从5.6到5.7还是做了很大改变的,比如mysql_install_db的文件位置变更到了/bin文件下等等,觉得现在用...
  • liuming9283
  • liuming9283
  • 2016年01月13日 14:16
  • 320
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:linux下mysql5.7的my.cnf在原有的基础上设置了utf8字符集
举报原因:
原因补充:

(最多只允许输入30个字)