当前位置:网站首页>MySQL5免安装修改
MySQL5免安装修改
2022-07-04 12:48:00 【芝兰生于深谷】
MySQL5免安装修改
1、修改my.ini文件
[client]
# 设置3308端口
port=3308
default-character-set=utf8
[mysql]
# 设置mysql客户端默认字符集
default-character-set=utf8
[mysqld]
# 设置3308端口
port=3308
# 设置mysql的安装目录
basedir="D:/mysql5/"
# 设置mysql数据库的数据的存放目录
datadir="D:/mysql5/Data/"
# 服务端使用的字符集默认为utf8
character-set-server=utf8
default-character-set=utf8
# 创建新表时将使用的默认存储引擎
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
# 允许最大连接数
max_connections=200
query_cache_size=0
table_cache=256
tmp_table_size=5M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=8M
key_buffer_size=8M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=212K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
2、修改其它配置文件
确保端口port与my.ini配置文件保持一致
3、修改windows批处理命令
"D:\mysql5\bin\mysqld" --defaults-file="D:\mysql5\my.ini" --console
路径保持正确
边栏推荐
- Read the BGP agreement in 6 minutes.
- 2022危险化学品经营单位主要负责人练习题及模拟考试
- Xilinx/system-controller-c/boardui/ unable to connect to the development board, the solution of jamming after arbitrary operation
- Node mongodb installation
- 嵌入式编程中五个必探的“潜在错误”
- 面试官:Redis中哈希数据类型的内部实现方式是什么?
- HAProxy高可用解决方案
- Lick the dog until the last one has nothing (state machine)
- Openharmony application development how to create dayu200 previewer
- Fs4056 800mA charging IC domestic fast charging power IC
猜你喜欢
Install Trinity and solve error reporting
Source code compilation and installation of MySQL
数据库公共字段自动填充
Introduction to reverse debugging PE structure resource table 07/07
HAProxy高可用解决方案
ASP. Net core introduction I
Byte interview algorithm question
Interview disassembly: how to check the soaring usage of CPU after the system goes online?
逆向调试入门-PE结构-资源表07/07
2022 Shandong Province safety officer C certificate examination question bank and online simulation examination
随机推荐
Install Trinity and solve error reporting
CVPR 2022 | 大幅减少零样本学习所需的人工标注,提出富含视觉信息的类别语义嵌入(源代码下载)...
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
免费、好用、强大的轻量级笔记软件评测:Drafts、Apple 备忘录、Flomo、Keep、FlowUs、Agenda、SideNote、Workflowy
C语言宿舍管理查询软件
Dgraph: large scale dynamic graph dataset
Animation and transition effects
Cors: standard scheme of cross domain resource request
#yyds干货盘点# 解决名企真题:连续最大和
The old-fashioned synchronized lock optimization will make it clear to you at once!
C language Dormitory Management Query Software
Using scrcpy projection
Node の MongoDB安装
Samsung's mass production of 3nm products has attracted the attention of Taiwan media: whether it can improve the input-output rate in the short term is the key to compete with TSMC
2022g3 boiler water treatment examination question simulation examination question bank and simulation examination
2022 Shandong Province safety officer C certificate examination question bank and online simulation examination
Flet教程之 03 FilledButton基础入门(教程含源码)(教程含源码)
Runc hang causes the kubernetes node notready
硬件基础知识-二极管基础
FS4056 800mA充电ic 国产快充电源ic