`

mysq - my.ini

 
阅读更多
# Example MySQL config file for large systems.
#
# This is for a large system with memory = 512M where the system runs mainly
# MySQL.
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# 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]
#password	= your_password
port		= 3306
socket		= /tmp/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port		= 3306
socket		= /tmp/mysql.sock
skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 1M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size= 16M
# Try number of CPU's*2 for thread_concurrency
thread_concurrency = 8

#own configuration
#2012/1/24
basedir = "E:\MySQL\mysql-5.5.19-win32\"
datadir = "E:\MySQL\mysql-5.5.19-win32\data\"
#loose-default-character-set = utf8
#character_set_server=utf8
character-set-server = utf8
default-storage-engine = innodb
#max_allowed_pack = 12M
#skip-networking
bind-address = 127.0.0.1

# 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
# (via the "enable-named-pipe" option) will render mysqld useless!
# 

# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin

# binary logging format - mixed recommended
binlog_format=mixed

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id	= 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
#    the syntax is:
#
#    CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
#    MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
#    where you replace <host>, <user>, <password> by quoted strings and
#    <port> by the master's port number (3306 by default).
#
#    Example:
#
#    CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
#    MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
#    start replication for the first time (even unsuccessfully, for example
#    if you mistyped the password in master-password and the slave fails to
#    connect), the slave will create a master.info file, and any later
#    change in this file to the variables' values below will be ignored and
#    overridden by the content of the master.info file, unless you shutdown
#    the slave server, delete master.info and restart the slaver server.
#    For that reason, you may want to leave the lines below untouched
#    (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id       = 2
#
# The replication master for this slave - required
#master-host     =   <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user     =   <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password =   <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port     =  <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin

# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = C:\\mysql\\data\\
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = C:\\mysql\\data\\
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 256M
#innodb_additional_mem_pool_size = 20M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 64M
#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

[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

  • GO.rar (2.8 KB)
  • 下载次数: 3
分享到:
评论

相关推荐

    mysql- my.ini配置(mysq5.6.10)

    mysql- my.ini配置(mysq5.6.10),供大家一起共同分享使用。

    MySQL my.ini 配置文件(含配置说明及优化建议)

    MySQL ini 初始化配置文件 配置环境:Windows Server 2008 R2 4核八线程 16G 具体可残酷配置说明及优化建议修改

    配置sql8的my.ini文件

    初始化数据库 文件导入导出

    在Windows安装zip版MySQL

    解压之后,目录中有一个my-default.ini,如果想自己定义一些参数的话,需要自己建一个my.ini或者my.cnf(mysql会优先查找my.ini,当然,为了避免冲突和莫名其妙的问题,还是只建一个my.ini为妙),常用的是定义基础...

    docker下修改mysql配置文件的方法

    主要介绍了docker下修改mysql配置文件的方法,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下

    MySQL5.6.17数据库安装 如何配置My.ini文件

    主要为大家详细介绍了MySQL数据库安装教程,教大家如何配置My.ini文件,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

    mysql5.7.17在win2008R2的64位系统安装与配置实例

    软件开发网已经给大家讲解过MYSQL其他版本在...第二步:安装文件根目录下添加data文件夹,将my-default.ini重命名为my.ini 第三步:在命令提示符下依次输入如下命令: 注意,若以前安装过,要卸载服务,使用命令:mysq

    windows10系统安装mysql-8.0.13(zip安装) 的教程详解

    安装环境说明 •系统版本:windows10 •mysql版本:mysql-8.0.13-winx64.zip ...解压安装包 •解压路径:D:\develop\software ...•my.ini文件拷贝到mysql根目录,文件路径为:D:\develop\software\mysql-8.

    Windows安装多版本MySQL

    工作要求,需要将MySQL...1.将下载好的包解压到你要安装的目录:我这边是C:\mysql8\mysql-8.0.19-winx64,如下图所示:其中my.ini文件和data目录是我手动建立的,原来没有。 其中my.ini的内容如下: 其中basedir,dat

    安装mysq 5.7.20 解压版遇到的坑(推荐)

    最近有朋友说当mysql5.7.20解压版环境变量配置好后,根目录没有my.ini 也没有 my-default.ini文件,怎么处理这个问题呢,下面小编给大家带来了解决方案,大家可以参考下

    MySQL5.7.03 更换高版本到MySQL 5.7.17安装过程及发现问题解决方案

    2、打开MySQL安装目录,找到【my-default.ini】,配置一些简单的信息。 # These are commonly set, remove the # and set as required. basedir = D:\Program Files\mysql-5.7.9-winx64 datadir = D:\Program Files...

    MySQL 5.6.36 Windows x64位版本的安装教程详解

    (1)(解压到当前文件夹方式)解压安装包,编辑其中的my-default.ini文件,主要是2项:  ①basedir即为mysql基础文件夹,形如:C:\mysql-5.6.36-winx64  ②datadir,即为mysq数据文件夹,形如:C:\mysql-5.6.36-...

    Ubuntu Debian(NGINX/PHP/MYSQL)快速配置工具LNMP云安装

    MySQL my.cnf:/etc/mysql/my.cnf PHP php.ini:/etc/php5/fpm/php.ini DebianLNMP一键安装LNMP效果图: Ubuntu Debian(NGINX/PHP/MYSQL)快速配置工具 Debian6系统下使用之前发布的“DebianLNMP”服务器软件...

    MySql 8.0.11-Winxp64(免安装版)配置教程

    在安装根目录下添加 my.ini 基本配置文件(my) [mysqld] basedir = D:\mysql-8.0.11-winx64 datadir = D:\mysql-8.0.11-winx64\data port = 3306 lower_case_table_names = 2 default_authentication_plugin=mysql...

    mysql 8.0.18 安装配置方法图文教程

    打开解压后的MySql文件在根目录下创建my.ini (mysql配置文件) my.ini文件内容如下: [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] #设置3306端口 port = 3306 # 设置mysql的安装目录 ...

    Windows下php+mysql5.7配置教程

    解压到C盘根目录,并改名为mysql57,进入mysql57,新建txt文件,改名为my.ini,打开该文件,添加下列配置信息。 [mysqld] #mysql根目录 basedir=C:\mysql57 #data数据存放的目录 datadir=C:\mysq

    MySql安装与配置方法(MySQL添加用户、删除用户与授权)

    1.安装MySql ...2)在目录下新建一个my.ini(文件中已经有一个mydefault.ini文件),新建后会将原来文件的作用覆盖掉。在文件中粘贴一下代码: [mysql]  # 设置mysql客户端默认字符集  default-character-

    mysq GBKl乱码

    我把my.ini里的字符集都改成 gbk了,用status命令显示,都是 gbk.然后我用source 命令导入sql文件,可是还不行。查询前我用了set names gbk,set names utf8,set names latin1.什么都显示乱码。 用mysql ...

    mysql 5.7.18 绿色版下载安装教程

    3、编辑“my.ini”文件;我的配置为: [mysql] # 设置mysql客户端默认字符集 default-character-set=utf8 [mysqld] #安装目录 basedir = D:\mysql\mysql-5.7.18-winx64 #数据存放目录 datadir = D:\mysql\mys

Global site tag (gtag.js) - Google Analytics