mysql配置文件my.ini

【教程】MYSQL中my.ini配置文件内容解读 上一篇我们讲解了如何在win11下同时安装MYSQL5.7.44和MYSQL8.0.33,供不同的学习需求使用【环境配置教程】MYSQL----win系统本地同时安装MySQL5.7.xx、MySQL8.0.xx本篇讲解一下安装mysql过程中的my.ini配置文件中的详细内容[mysqld]# 基本设置basedir=D:\software\environment\mysql\mysql-8.0.33 # MySQL安装目录。 阅读详情
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory 
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
# make sure the server reads the config file use the startup option 
# "--defaults-file". 
#
# To run run the server from the command line, execute this in a 
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# To install the server as a Windows service manually, execute this in a 
# command line shell, e.g.
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQLXY
#
#
# Guildlines for editing this file
# ----------------------------------------------------------------------
#
# In this file, you can use all long options that the program supports.
# If you want to know the options a program supports, start the program
# with the "--help" option.
#
# More detailed information about the individual options can also be
# found in the manual.
#
#
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]


port=3306


[mysql]


default-character-set=utf8




# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this 
# file.
#
[mysqld]


# The TCP/IP Port the MySQL Server will listen on
port=3306




#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:/Program Files/MySQL/MySQL Server 5.5/"


#Path to the database root
datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"


# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=utf8


# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB


# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"


# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=100


# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=0


# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=256


# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=34M




# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before.  This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=8


#*** MyISAM Specific options


# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G


# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method.  This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=67M


# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=54M


# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=64K
read_rnd_buffer_size=256K


# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=256K




#*** INNODB Specific options ***




# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb


# Additional memory pool that is used by InnoDB to store metadata
# information.  If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS.  As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=3M


# If set to 1, InnoDB will flush (fsync) the transaction logs to the
# disk at each commit, which offers full ACID behavior. If you are
# willing to compromise this safety, and you are running small
# transactions, you may set this to 0 or 2 to reduce disk I/O to the
# logs. Value 0 means that the log is only written to the log file and
# the log file flushed to disk approximately once per second. Value 2
# means the log is written to the log file at each commit, but the log
# file is only flushed to disk approximately once per second.
innodb_flush_log_at_trx_commit=1


# The size of the buffer InnoDB uses for buffering log data. As soon as
# it is full, InnoDB will have to flush it to disk. As it is flushed
# once per second anyway, it does not make sense to have it very large
# (even with long transactions).
innodb_log_buffer_size=2M


# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system.  Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=104M


# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=52M


# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=10
MySQL配置文件(my.ini)详解及示例 MySQL是一种常用的关系型数据库管理系统,它提供了一个名为my.ini的配置文件,用于定义和控制MySQL服务器的行为。在配置MySQL服务器之前,请确保备份原有的my.ini文件,并根据你的需求进行修改。[mysqld]:这是my.ini文件中最常见的部分,它包含了用于配置MySQL服务器的参数。[mysqlhotcopy]:该部分用于配置mysqlhotcopy命令行工具的选项。[mysqld_safe]:该部分用于配置mysqld_safe启动脚本的选项。 阅读详情

相关推荐

解决IIS中应用程序池提供服务的进程无法响应Ping或进程关闭时间超过了限制

1.错误系统日志:为应用程序池 ‘DefaultAppPool’ 提供服务的进程无法响应 Ping。进程 ID 是 ‘2144’。 解决办法:卸载完McAfee后,恢复正常 注意: 需要重新注册一vbscript和jscript组件 杀毒工具有的会把vbscript和jscript禁了 regsvr32 vbscript.dll 和regsvr32 jscript.dll 均已经注册成功,问题已解决。 2.错误系统日志:为应用程序池“DefaultAppPool”提供服务的进程关闭时间超过了限制。进程 ID 是“3060”。 注:ID号,是变化的,可以为任何数据如3124,每次出现这种错误,I

mysql-cluster

[ndb_mgmd]  hostname=192.168.1.101 id=1    [ndbd default]  noofreplicas=2  datadir=D:\DEVTOOLS\mysqlcluster\cluster\data   [ndbd]  hostname=192.168.1.102 id=2    [ndbd]  hostname=192.1...

chechione的博客 190

MATLAB实战:64QAM通信系统仿真全流程解析(附误码率优化技巧)

本文提供了一份完整的64QAM通信系统MATLAB仿真实践指南。从系统架构设计、发射端格雷码映射与脉冲成形,到信道建模、接收端同步与均衡,详细解析了全链路实现流程。文章重点分享了误码率曲线与理论值偏差的排查清单和深度优化技巧,帮助工程师构建工业级精度的仿真模型,解决高阶调制系统仿真的核心难题。

jenkins8butler的博客 407

MySQL配置文件my.ini详解

其实大体可以分为两部分:客户端的参数、服务器参数。其中服务器参数里还包括 InnoDB存储引擎参数。

顺其自然~专栏 3万+

WPS专业版自带字体

WPS专业版其中一个好处就是自带了部分有版权的字体,就算你安装了没买授权,他也会给你在系统里面安装上这些字体,至于没授权继续用合不合规我不知道。但是带来的实实在在的好处就是有些子他支持的全啊。 /usr/share/fonts/wps-office/FZWBK.TTF: 方正魏碑_GBK,FZWeiBei\-S03:style=Regular /usr/share/fonts/wps-office/FZFSK.TTF: 方正仿宋_GBK,FZFangSong\-Z02:style=Regular /us

chenqioulin的博客 5726

模型剪枝实战 | Torch-Pruning 库在YOLOv8上的应用指南

本文详细介绍了如何使用Torch-Pruning库对YOLOv8模型进行结构化剪枝,以实现模型“瘦身”。通过DepGraph(依赖图)技术自动处理层间依赖,确保剪枝安全。文章提供了从环境搭建、核心原理理解到完整剪枝流程的实战指南,并强调了剪枝后的微调与性能评估,帮助开发者在保持精度的同时显著提升模型推理速度。

weixin_29046035的博客 511

【详记MySql问题】安装之后没有my.ini配置文件怎么办

Windows操作系统中,我们安装Mysql有两个选择:一是下载MSI点击运行,利用windows系统安装程序的方法按部就班的来安装;二是下载ZIP,解压出来就能立即使用。 在使用ZIP安装时,安装好之后默认是没有my.ini配置文件的: 当我们想修改数据库的配置信息如 wait_timeout、interactive_timeout、max_connections 或大小写敏感时,却找不到my.ini 配置文件。 虽然这时,还可以通过命令行来修改配置信息,但重启mysql后修改会失效,配置会回归默认值,

Acheng123的博客 3万+

Ubuntu20.04下运行VINS系列:VINS-Mono、VINS-Fusion和GVINS

安装好了VINS-Mono所需的ROS noetic、Eigen3.4.0、Ceres2.10和OpenCV4.2.0等。VINS-Mono是在ROS melodic以及Ceres1的环境下开发的,因此需要适配高版本的环境。

zardforever123的博客 2万+

解决Mysql安装之后没有my.ini配置文件问题

【详记MySql问题大全集】三、安装之后没有my.ini配置文件怎么办 系列目录 一、安装MySql 二、安装并破解Navicat 三、没有my.in配置文件怎么办 四、设置MySql的大小写敏感 五、重置MySql登陆密码   之前说过,Windows操作系统中,我们安装Mysql有两个选择:一是下载M...

s_156的博客 2万+

cdh zookeeper未授权访问(安全漏洞)处理

前言: 最近公司在做安全漏洞扫描。发现cdh zookeeper存在未授权访问的问题。 ZooKeeper的节点有5种操作权限: CREATE、READ、WRITE、DELETE、ADMIN 也就是 增、删、改、查、管理权限,这5种权限简写为crwda(即:每个单词的首字符缩写) 注:这5种权限中,delete是指对子节点的删除权限,其它4种权限指对自身节点的操作权限 ZooKeeper的身份的认证有4种方式: world:默认方式,相当于全世界都能访问 auth:代表已经认证通过的..

belialxing的专栏 2450

Ubuntu+Dify实战:如何让大模型知识库完美支持图片召回(附避坑指南)

本文详细介绍了在Ubuntu系统上部署Dify平台,并实现大模型知识库图片召回功能的完整实战方案。通过解析Dify处理图片的底层逻辑,重点讲解了配置Nginx代理服务器将本地图片路径转换为可公开访问URL的核心工程步骤,并提供了文档预处理、环境变量配置以及父子分段策略等高级技巧,帮助开发者构建图文并茂的AI应用,有效提升知识库的丰富性和用户体验。

c7d8e的博客 455

MySQL的配置文件my.cnf与my.ini

MySQL的配置文件my.cnf与my.ini

喵酱 9195

15、人工智能社会学:关系视角下的机器相遇

本文探讨了将人工智能视为社会主体的可能性,提出了一种关系视角下的人工智能社会学。通过结合卢西亚娜·帕里西、艾伦·图灵和乔治·赫伯特·米德的理论,强调不确定性在人工智能运行中的核心地位,并分析了人工智能如何通过与社会环境的互动催生新奇性,从而拓展社会学的研究范畴。文章还讨论了人工智能对社会结构和社会互动的影响,以及其作为社会主体所带来的理论和实践意义,为未来人工智能社会学的发展提供了方向。

pea55的博客 75

win10 mysql8 my.ini配置文件

郑重说明 网上很多文章写win10系统下的mysql8版本的配置文件位置在哪里,以及如何安装mysql,等等。这些要么将的不够清晰,要么画蛇添足。经过繁琐的查询和测试,终于搞定,现在记录下来,希望能够帮助到诸位。因为我们最想知道的无非是两点: my.ini配置文件在哪里 my.ini配置文件的内容如何配置 一、my.ini配置文件的路径:面向已经安装好mysql的用户 找到mysql的环境变量...

Utrix的博客 4万+

C++高级数据结构算法 | 二叉树的四种遍历算法详解(递归与非递归实现)

二叉树遍历方法 、前序遍历算法 、中序遍历算法 、后序遍历算法 、层序遍历算法

ZY-JIMMY 2570

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

【MySQL篇】MySQL的my.ini配置文件位置

【MySQL篇】MySQL的my.ini配置文件位置 ​ 做个记录—【suy】 文章目录【MySQL篇】MySQL的my.ini配置文件位置一、在C盘的“ProgramData”隐藏文件1、文件资源管理器勾选“隐藏的项目”2、进入MySQL位置3、拷贝my.ini文件到MySQL安装路径二、my.ini简单配置max_allowed_packet配置大一点!!! 一、在C盘的“ProgramData”隐藏文件 默认在MySQL官网下的MySQL安装程序或程序压缩包,在安装路径下都是没有my.ini文件的,那

蘇小沐的电子数据取证博客 1万+

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

mysql安装成功之后,没有找到my.ini配置文件怎么办

目录 1. 删除MySql服务# 2. 新建my.ini配置文件# 3. 重新生成data文件# 4. 重新安装mysql服务,同时绑定my.ini配置文件# 5. 启动服务# 5.1 服务窗口启动# 5.2 cmd命令启动# 6. 重新设置密码# 6.1 登陆mysql# 6.2 修改root用户密码# 6.3 退出MySQL# 6.4 使用修改后的密码重新登陆# 之前说过,Windows操作系统中,我们安装Mysql有两个选择: 一、是下载MSI点击运行,利用windows系

YANG1894625的博客 8825

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

mysql查找配置文件my.ini位置方法

见:https://blog.csdn.net/mayor125/article/details/54140454 https://jingyan.baidu.com/article/7e4409531f75292fc0e2efe7.html 个人备注:不显示文件类型时,my.ini 文件名就叫作 my, 文件属性才显示 ini。 找到 my 文件看属...

cuicui_ruirui的博客 2万+

mysql学习笔记整理——my.ini配置文件

前言 数据库的本质还是将数据以文件的形式存储在磁盘上,不过通过数据库服务进行管理,mysql就是这样的一个工具,言归正传,前面只是对我以前一直以来的疑惑进行了复述。 my.ini配置文件可以对数据库一些常用配置进行设置,如:engineer、port、character等,因此这个文件也是非常重要的,当然也可以全部使用默认配置的形式。 一、my.ini的位置 这里要特别注意一下,my.ini默认是在mysql实例文件的根路径下,如: 但是可能有一些直接下载zip进行安装的mysql,在这个路径下依旧是找不

Burnup_110的博客 5万+

mysql---配置文件my.ini或my.cnf的详解

一、配置文件my.ini或my.cnf的位置 1、Windows下MySQL的配置文件是my.ini,一般会在安装目录的根目录。 2、Linux下MySQL的配置文件是my.cnf,一般会放在/etc/my.cnf,/etc/mysql/my.cnf。如果找不到,可以用find命令查找。  (1)find /etc -name my.cnf   --在/etc目录下的文件my.cnf  (2...

qq_34802511的博客 2万+

mysql修改my.ini_MySQL配置文件(my.ini)详解

在《MySQL安装后的目录结构介绍》一节中,我们了解到 my.ini 是 MySQL 数据库中使用的配置文件,MySQL 服务器启动时会读取这个配置文件,我们可以通过修改这个文件,达到更新配置的目的。本节以 Windows 系统下的 my.ini 配置文件为样板,讲解 MySQL 配置文件中的参数。一般情况下,my.ini 在 MySql 安装的根目录下,也有可能在隐藏文件夹“ProgramDat...

weixin_29110051的博客 8106

mysql my.ini 配置_MySQL配置文件-my.ini

下面允许我介绍一下MySQL的my.ini配置文件:my.ini是什么?my.ini是MySQL数据库中使用的配置文件,修改这个文件可以达到更新配置的目的。my.ini存放在哪里?my.ini存放在MySql安装的根目录,如图所示:my.ini的具体内容介绍:1 # CLIENT SECTION2 # ------------------------------------------------...

weixin_36360005的博客 1442
上一篇: MySQL命令1
下一篇: JSP中文乱码解决方法
mileytimer
博客等级 码龄12年 17粉丝 35原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址