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配置中的常用参数

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

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

linux下mysql 5.7+版本 忘记密码和支持远程访问

在linux下安装mysql5.7+版本,如果忘记密码需要做以下几步: 1、停止Mysql服务(有的文章说可以不停,建议还是停止,减少不必要的麻烦) 2、进入/etc/my.cnf(一般都会放在这个目...

MySQL my.cnf 参数 详解

[client] port    = 3306    //客户端端口号为3306 socket  = /tmp/mysql.sock  //套接字文件(sockets),这种文件一般用在网络上的资...

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

数据库连接错误
  • ixidof
  • ixidof
  • 2010-10-22 14:22
  • 163146

Windows下MySQL5.7.10免安装配置

一.下载解压包mysql-5.7.10-winx64.zip 本文解压到E:\根目录下,完整路径为E:\mysql-5.7.10-winx64 二.解压配置 mysql-5.7.10-winx64...

MySQL 5.7.19 CentOS 7 安装

MySQL 5.7.19 CentOS 7 安装 Linux的版本有很多,因此下载mysql时,需要注意下载对应Linux版本的MySql数据库文件。以下方法也适合centOS 7 的mysql 5....

构建高性能web之路------mysql读写分离实战

一个完整的mysql读写分离环境包括以下几个部分:应用程序clientdatabase proxydatabase集群在本次实战中,应用程序client基于c3p0连接后端的database prox...

Mysql(5.7)设置字符集为UTF-8

之前在使用Mysql 5.1 版本的时候,是通过在 /etc/my.cnf增加如下配置来设置字符集的: 但是今天在 5.7 版本上使用同样的方式时,导致 mysql 无法启动,日志文件 /var/l...

linux mysql 5.7 修改默认字符集为utf8

1、通过  SHOW VARIABLES LIKE 'character_set_%'; 查看mysql字符集情况 mysql> show variables like "%char%"; +----...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

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