# Example MySQL config file for small systems.

#

# This is for a system with little memory (<= 64M) where MySQL is only used

# from time to time and it’s important that the mysqld daemon

# doesn’t use much resources.

#

# You can copy this file to

# /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options (in this

# installation this directory is /var/lib/mysql) or

# ~/.my.cnf to set user-specific options.

#

# In this file, you can use all long options that a program supports.

# If you want to know which options a program supports, run the program

# with the “–help” option.

# The following options will be passed to all MySQL clients

[client]

default_character_set=utf8

#password= your_password

port= 3306

socket= /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server

[mysqld]

datadir=/var/lib/mysql/

default_character_set=utf8

port= 3306

socket= /var/lib/mysql/mysql.sock

skip-locking

key_buffer = 16K

max_allowed_packet = 1M

table_cache = 4

sort_buffer_size = 64K

read_buffer_size = 256K

read_rnd_buffer_size = 256K

net_buffer_length = 2K

thread_stack = 64K

# Don’t listen on a TCP/IP port at all. This can be a security enhancement,

# if all processes that need to connect to mysqld run on the same host.

# All interaction with mysqld must be made via Unix sockets or named pipes.

# Note that using this option without enabling named pipes on Windows

# (using the “enable-named-pipe” option) will render mysqld useless!

#

#skip-networking

server-id= 1

# Uncomment the following if you want to log updates

#log-bin

# Uncomment the following if you are NOT using BDB tables

#skip-bdb

# Uncomment the following if you are using InnoDB tables

#innodb_data_home_dir = /var/lib/mysql/

#innodb_data_file_path = ibdata1:10M:autoextend

#innodb_log_group_home_dir = /var/lib/mysql/

#innodb_log_arch_dir = /var/lib/mysql/

# You can set .._buffer_pool_size up to 50 - 80 %

# of RAM but beware of setting memory usage too high

#innodb_buffer_pool_size = 16M

#innodb_additional_mem_pool_size = 2M

# Set .._log_file_size to 25 % of buffer pool size

#innodb_log_file_size = 5M

#innodb_log_buffer_size = 8M

#innodb_flush_log_at_trx_commit = 1

#innodb_lock_wait_timeout = 50

[mysqldump]

quick

max_allowed_packet = 16M

[mysql]

no-auto-rehash

# Remove the next comment character if you are not familiar with SQL

#safe-updates

[isamchk]

key_buffer = 8M

sort_buffer_size = 8M

[myisamchk]

key_buffer = 8M

sort_buffer_size = 8M

[mysqlhotcopy]

interactive-timeout

mysql etc my.cnf_mysql配置文件/etc/my.cnf相关推荐

  1. mysql etc my.cnf_mysql配置文件 /etc/my.cnf 详细解释

    转载:https://www.cnblogs.com/wajika/p/6323026.html basedir = path 使用给定目录作为根目录(安装目录). character-sets-di ...

  2. mysql 初始化my.cnf_MySQL配置文件my.cnf 例子最详细翻译

    转的 MySQL配置文件my.cnf 例子最详细翻译,可以保存做笔记用. #BEGIN CONFIG INFO #DESCR: 4GB RAM,只使用InnoDB,ACID,少量的连接,队列负载大 # ...

  3. mysql 的自动启动 使用配置文件 /etc/my.cnf

    通常你可以用以下方法启动mysqld服务器: ?        直接调用mysqld.该方法适合任何平台. ?        作为Windows服务运行MySQL服务器.可以在支持服务的Windows ...

  4. mysql my-small.cnf_mysql配置文件my-small.cnf解析,汉文翻译,配置

    #修改为自动补全  只能提示表名和表里面字段名# Remove the next comment character if you are not familiar with SQL #安全更新 #s ...

  5. Centos 7 上 查看MySQL当前使用的配置文件my.cnf的方法

    my.cnf是mysql启动时加载的配置文件,一般会放在mysql的安装目录中,用户也可以放在其他目录加载.总的来说,my.cnf类似与window中my.ini 使用locate my.cnf命令可 ...

  6. MySQL--My.cnf配置文件模板 MYSQL AND MARIADB CONFIGURATION FILE TEMPLATE (MY.CNF/MY.INI)

    MySQL--My.cnf配置文件模板 Introduce The MySQL and MariaDB default configuration is not very great for prod ...

  7. Mysql配置文件/etc/my.cnf解析

    Mysql配置文件/etc/my.cnf解析 # 客户端设置 [client] port = 3306 # 默认情况下,socket文件应为/usr/local/mysql/mysql.socket, ...

  8. Mac下mysql配置文件没有my-default.cnf,无法配置my.cnf

    Mysql不提供my-default.cnf文件的版本 官网说:从5.7.18开始不在二进制包中提供my-default.cnf文件. 针对用户 针对mac端,并且没有my-default.cnf的用 ...

  9. Linux中安装的mysql查不到配置文件my.cnf

    linux中找不到my.cnf 解决方法: MySQL在启动时自动使用/usr/share/mysql目录下的my-medium.cnf文件,这种说法仅限于rpm包安装的MySQL, 至此找到配置文件

  10. mysql.server 文件是什么_mysql的启动脚本mysql.server及示例配置文件

    以MySQL-server-4.0.14-0.i3862881064151.rpm为例,放在/data目录下 cd /data rpm -ivh MySQL-server-4.0.14-0.i386. ...

最新文章

  1. linux内核层功能 和核心,Linux内核研发工程师
  2. 如何设置网站标题更有利于网站SEO优化?
  3. Leetcode 703. 数据流中的第K大元素 解题思路及C++实现
  4. 3x3九宫格java_Java实现九宫格的简单实例
  5. python使用tkinter做界面之颜色
  6. 14、java中的集合(1)
  7. 从0到1带你手撸一个请求重试组件,不信你学不会!
  8. C++ 函数默认参数和占位参数
  9. 二叉树(Binary Tree)
  10. 2005-2018 年软考软件设计师 真题分享
  11. 1.python程序图标制作
  12. 浊音、清音、爆破音音频分析
  13. 世界上第一套电子表格软件 —— VisiCalc
  14. db2 删除索引_史上最牛分析MySQL索引机制的实现!不接受反驳!
  15. 人工智能为代表的新一轮科技革命和产业变革正在重构全球创新版图
  16. Unity2D游戏开发—— 解决主角连跳小BUG(在空中无限跳)
  17. 华为上诉失败,被禁止在瑞典销售 5G 设备;苹果公司市值重获全球第一;Deno 完成 2100 万美元 A 轮融资|极客头条
  18. SAS软件sid最新
  19. 用HTML+CSS跟简单的js操作完成响应式星巴克首页
  20. 硬件知识:大功率电机驱动

热门文章

  1. github入门到上传本地项目(转)
  2. IE6/7下不同的inline-block
  3. WebsResponse
  4. [导入]刚拿积蓄救人 自己又患癌症(我身边的一个真实故事)
  5. 智能优化算法总结-数字孪生下的车间调度-APS预告
  6. 【Git/Github学习笔记】Git常用命令(代码冲突二)
  7. 【LeetCode】【数组】题号:628,三个数组成的乘积最大
  8. 【ArcGIS|3D分析】要素的立体显示
  9. 哨兵1号(Sentinel-1)与陆地探测1号(L-SAR)对比
  10. 开发利器--JSONVIEW插件 网页json数据直接转换