# 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
分享到:
相关推荐
mysql- my.ini配置(mysq5.6.10),供大家一起共同分享使用。
1. **配置文件**:MySQL的配置文件是my.ini或my.cnf,通常位于安装目录下。你可以根据需求调整各种参数,如最大连接数、缓存大小等。 2. **服务管理**:MySQL作为Windows服务运行,可以通过服务管理器或命令行的`...
MySQL ini 初始化配置文件 配置环境:Windows Server 2008 R2 4核八线程 16G 具体可残酷配置说明及优化建议修改
- 如果my.ini文件存在配置错误,可以尝试删除当前的my.ini文件,然后根据MySQL的安装路径创建一个新的my.ini文件,确保添加正确的`basedir`和`datadir`。 3. **检查路径和权限**: - 确保my.ini文件中指定的所有...
在 mysql-x.x.xx-winx64 目录下,新建一个名为 my.ini 的文件,然后将以下代码复制并保存: ``` [mysql] # 设置 mysql 客户端默认字符集 default-character-set=utf8 [mysqld] # 设置 3306 端口 port = 3306 # ...
初始化数据库 文件导入导出
在安装 MySQL 5.6.17 的过程中,配置 `my.ini` 文件是一个关键步骤,它决定了数据库的运行参数和设置。 首先,配置 MySQL 环境涉及到将 MySQL 的安装路径添加到系统变量中。这样,无论你在哪个目录下,都可以通过...
解压之后,目录中有一个my-default.ini,如果想自己定义一些参数的话,需要自己建一个my.ini或者my.cnf(mysql会优先查找my.ini,当然,为了避免冲突和莫名其妙的问题,还是只建一个my.ini为妙),常用的是定义基础...
主要介绍了docker下修改mysql配置文件的方法,本文给大家介绍的非常详细,具有一定的参考借鉴价值,需要的朋友可以参考下
软件开发网已经给大家讲解过MYSQL其他版本在...第二步:安装文件根目录下添加data文件夹,将my-default.ini重命名为my.ini 第三步:在命令提示符下依次输入如下命令: 注意,若以前安装过,要卸载服务,使用命令:mysq
安装环境说明 •系统版本:windows10 •mysql版本:mysql-8.0.13-winx64.zip ...解压安装包 •解压路径:D:\develop\software ...•my.ini文件拷贝到mysql根目录,文件路径为:D:\develop\software\mysql-8.
2. **配置主库**:在 A 的 `my.ini` 文件中设置 `server-id` 为 1,开启二进制日志 `log-bin`,并指定同步的数据库 `binlog-do-db` 为 `test`。 3. **创建从库**:在从机 B 上创建与主机 A 结构相同的数据库 `backup...
【MySQL 8.0.11 安装教程】 MySQL 是世界上最流行的开源关系型数据库管理系统之一,其8.0.11版本提供了诸多性能优化和安全...在MySQL的安装根目录下,创建一个名为my.ini的文件,将其文件类型改为.ini。这个文件是MySQ
* 配置文件 my.ini - MySQL数据目录:datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/" * 几个概念: - 数据库:文件夹 - 表:文件 - 数据:数据 SQL数据库的基本概念 * 什么是SQL?:...
对于在根目录没有找到my.ini和my-default.ini配置文件的情况,这的确会带来一些困扰。对于MySQL解压版来说,缺少配置文件会导致无法启动MySQL服务,因为MySQL服务启动时会读取配置文件中的参数。 首先,了解配置...
工作要求,需要将MySQL...1.将下载好的包解压到你要安装的目录:我这边是C:\mysql8\mysql-8.0.19-winx64,如下图所示:其中my.ini文件和data目录是我手动建立的,原来没有。 其中my.ini的内容如下: 其中basedir,dat
本文详细介绍了如何在Window系统下进行MySQL离线安装,涵盖了下载、解压、配置my.ini文件、配置环境变量、安装和启动MySQL服务、重置root密码等步骤,旨在帮助读者快速、正确地安装和配置MySQL数据库。
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的配置文件`my.ini`来解决问题: - 打开`my.ini`文件,在`[mysqld]`节内添加以下配置: ``` max_allowed_packet=64M ``` - 修改完毕后,重启MySQL服务,然后再尝试启动OA服务。 2. **...