当前位置:网站首页>MySQL installed in MAC M1, enable binlog
MySQL installed in MAC M1, enable binlog
2022-07-22 02:08:00 【Foggy island and whale】
mac M1 Next use homebrew Installed mysql, But I can't find my.cnf, This leads to a lot of mysql Can only be set in session In effect ( such as show variables Set the variables listed by the command ),mysql After disconnection and reconnection, it returns to its initial state . You can only modify it if you want to keep it in effect my.cnf.
Use command mysql --verbose --help | grep my.cnf
, Can find mysql load my.cnf The default path for , We can check the listed paths in turn .
If none of them exist , We can choose any path to create one , And then restart mysql that will do .
stay my.cnf Add the following configuration to the file :
[mysqld]
# log_bin
log-bin = mysql-bin # Turn on binlog
binlog-format = ROW # choice row Pattern
server_id = 1 # To configure mysql replication Need to define , Unable to join canal Of slaveId repeat
Start the service :
brew services start [email protected]
brew services restart [email protected] # restart
brew services stop [email protected] # stop it
perform , Check to see if it is turned on successfully
show variables like 'log_bin';
边栏推荐
- Understand the domestic open source Magnolia license series agreement in simple terms
- BGP—— 边界网关协议
- 风控系统,Flink+Clickhouse实现!
- HCIP第十一天笔记
- 字节跳动确认将自研芯片:仅供内部使用;马斯克:我已将大脑上传云端;Go 语言产品负责人离职|极客头条...
- SkyWalking集成日志框架、告警、高可用集群搭建
- 浏览器本地存储webStroage
- Codeforces Round #809 (Div. 2) - C, D1
- SparkSql中的窗口函数
- 架构内容 节选自《闻缺陷则喜》(此书可免费下载)
猜你喜欢
PyTorch常用代码段合集
M using Verilog to develop GMSK modulator based on FPGA under ISE platform
SkyWalking集成日志框架、告警、高可用集群搭建
have a look
LeetCode 146:LRU 缓存
Neural network plus attention mechanism, accuracy does not rise but fall?
Oracle中对空字符串的判断
2022-7-17 FTP client project implementation - Summary
Hcip day 8 notes
两数相加leecode2
随机推荐
表达式求值(栈)
import torch_ geometric. NN error /lib64/libm so. 6: version `GLIBC_ 2.27‘ not found
机器学习岗位面试总结:简历应该关注的5个重点
Gateway路由服务的创建
07.02 Huffman code
07.01 哈夫曼树
解决GD32F207串口可以接收但发送00的问题
Chapter 3 business function development (to display the main page of clues and query the data of each drop-down box of the form)
Left ear mouse: five capabilities that developers in the cloud native era should have
AtCoder Beginner Contest 260 - C, D, E
最近的三个数之和
架构内容 节选自《闻缺陷则喜》(此书可免费下载)
SkyWalking服务端的搭建、微服务接入SkyWalking
clip:learning transferable visual models from natural language supervision
rust中的静态分发和动态分发
3537. 树查找
QT hodgepodge (total)
Codeforces Round #809 (Div. 2) - C, D1
3625. 幂次方
07.02 哈夫曼编码