echo '
回车 + 粘贴
[mysqld]
skip-host-cache
skip-name-resolve
datadir = /var/lib/mysql
!includedir /etc/mysql/conf.d/
lower_case_table_names=1
server-id=3
log-bin=mysql-bin
sync_binlog=1
binlog_checksum=none
binlog_format=mixed
gtid-mode=on
enforce-gtid-consistency=true
log-slave-updates=1
回车
' > /etc/mysql/my.cnf
直接用从剪贴板粘贴出来的文件,覆盖原来文件的内容
了解 工作生活心情记忆 的更多信息
Subscribe to get the latest posts sent to your email.