当前位置:网站首页>my. Binlog startup failure caused by the difference between [mysql] and [mysqld] in CNF
my. Binlog startup failure caused by the difference between [mysql] and [mysqld] in CNF
2022-06-11 11:19:00 【Solitary goose treading on snow】
Implementation colleagues deploy with the documents I give mysql The main configuration , Find out binlog Has not started
I looked at the configuration :
my.cnf
[client]
port=3306
socket=/mnt/hwb/mysql/mysqlinstall/public/mysql/mysql.sock
[mysql]
server-id=1
auto_increment_offset=1
auto_increment_increment=2
default-character-set=utf8
log-bin=mysql-bin
log-slave-updates=true
#gtid-mode=on
#enforce-gtid-consistency=truemasterB:
master-info-repository=TABLE
relay-log-info-repository=TABLE
sync-master-info=1
slave-parallel-workers=0
sync_binlog=0
max_binlog_size=100M
binlog_format=row
expire_logs_days = 15
innodb_flush_log_at_trx_commit=0
replicate_wild_ignore_table =mysql.%
replicate_wild_ignore_table =test.%
replicate_wild_ignore_table =information_schema.%
replicate_wild_ignore_table =performance_schema.%
max_connect_errors=30
slave_skip_errors=ddl_exist_errors
skip-character-set-client-handshake
init-connect='SET NAMES utf8'
character-set-server=utf8
wait_timeout=1800
interactive_timeout=1800
skip-name-resolve
no-beep
[mysqld]
basedir=/mnt/hwb/mysql/mysqlinstall/public/mysql
datadir=/mnt/hwb/mysql/mysqlinstall/public/mysql/data
port=3306
socket=/mnt/hwb/mysql/mysqlinstall/public/mysql/mysql.sock
log_error=/mnt/hwb/mysql/mysqlinstall/public/mysql/error.log
character-set-server=utf8
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
default-storage-engine=INNODB
max_connections=1000
lower_case_table_names=1
skip-name-resolve
Found to have :“log-bin=mysql-bin” The description is that the startup is set binlog Of , Execute the command on the client side :

First encounter execution show master status;
Nothing there? , I searched a lot on the Internet for binlog Setup failed , No problem found , So he asked a great God , The great God said :
All parameters should be written to [mysqld] below
A sudden surprise , Then I understand the problem , Because I didn't add the configuration file at first , I haven't paid attention to this problem yet .
Attach a link :http://blog.itpub.net/31397003/viewspace-2651459/
About my.cnf There are several configuration differences :
[client] Represents the default settings of the client ;
[mysql] Use... On behalf of us mysql Command login mysql Default settings for database ;
[mysqld] Represents the default settings of the database itself ;
After modification , Restart , No problem , It is hereby recorded that .
Let me share with you !
边栏推荐
- Vscade -- vscode multi window name is configured as project name
- nft数字藏品app系统搭建
- Lifeifei: I am more like a scientist in physics than an engineer
- 数字藏品app小程序公众号源码
- MWC 2022 lights up the future, and everything serves
- Content-Type: multipart/form-data; boundary=${bound}
- Bark – 自己给自己的 iPhone 发推送提醒 – 最简单的推送提醒服务,开源免费
- Surrounddepth: self supervised multi camera look around depth estimation
- 外观模式--在各种套餐中早就用到啦!
- AcWing 1353. 滑雪场设计(贪心)
猜你喜欢
![Définir l'adresse de réception par défaut [Centre commercial du projet]](/img/eb/2864b124b66d01849315a367948ed4.png)
Définir l'adresse de réception par défaut [Centre commercial du projet]
![Set the default receiving address [project mall]](/img/eb/2864b124b66d01849315a367948ed4.png)
Set the default receiving address [project mall]

Store management skills: how to manage chain stores efficiently?

Display of receiving address list 【 project mall 】

Interpretation of cube technology | past and present life of cube Rendering Design

The complete manual of the strongest Flink operator is a good choice for the interview~

DROID-SLAM: 用于单目双目RGBD相机的深度视觉SLAM

SurroundDepth:自监督多摄像头环视深度估计

企业微信小程序避坑指南,欢迎补充。。。

Use pydub to modify the bit rate of the wav file, and an error is reported: c:\programdata\anaconda3\lib\site packages\pydub\utils py:170: RuntimeWarning:
随机推荐
数字藏品系统源码搭建
AcWing 1944. Record keeping (hash, STL)
Where is it safer to open an account for soda ash futures? How much capital is needed to buy soda ash futures?
NFT digital collection app system construction
推荐几款Gravatar头像缓存插件
Installing redis in CentOS 7 environment
发布WordPress数据库缓存插件:DB Cache Reloaded 3.1
Summary of English thesis reading knowledge
Jerry's ble spp open pin_ Code function [chapter]
Iterator mode -- battlefield autumn point
使用Yolov5训练好模型调用电脑自带摄像头时出现问题:TypeError: argument of type “int‘ is not iterable的解决方法
UCI-HAR数据集的处理
Jerry's acquisition of ble OTA dual backup upgrade (can only be used for chips above 4mbits) [article]
Adapter mode -- can you talk well?
MySQL optimized learning diary 10 - locking mechanism
沒有財富就不能自由嗎?
WP Super Cache静态缓存插件简明使用教程
小白在同花顺上直接开户是安全的吗?
Content-Type: multipart/form-data; boundary=${bound}
Use pydub to modify the bit rate of the wav file, and an error is reported: c:\programdata\anaconda3\lib\site packages\pydub\utils py:170: RuntimeWarning: