当前位置:网站首页>MySQL enable logbin in Qunhui docker

MySQL enable logbin in Qunhui docker

2022-06-26 04:13:00 Dudu listing

Qunhui access terminal :

Run the command :

apt-get update

apt-get install vim

 

see

[email protected]:/# which mysql                                                      
/usr/bin/mysql                                                                  
[email protected]:/# /usr/bin/mysql --verbose --help | grep -A 1 'Default options'    
Default options are read from the following files in the given order:           
/etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf                                         
[email protected]:/#                                                           

Use the found in the previous step mysql Executable Directory , lookup mysql The directory of the configuration file , After searching, multiple directories will be output ,mysql Read the configuration from these files in order , If the previous configuration file does not exist, the next one will be read , By analogy .

edit  

vi /etc/mysql/my.cnf

add to

 

restart mysql 

service mysqld restart
Enter after execution mysql Check whether the configuration is effective

It can be seen that , Successfully opened binlog

  Test in the program CDC

, Delete and add fields . Program trigger  

原网站

版权声明
本文为[Dudu listing]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180538038410.html