mac. mysql

安装

brew install mysql

mysql错误文件

/usr/local/var/mysql/MACdeMacBook.local.err

mysql配置文件

/etc/my.cnf

cat my.cnf 
[mysqld]

server-id =10
max_binlog_size =100M

启动停止

/usr/local/bin/mysql.server start
/usr/local/bin/mysql.server stop
/usr/local/bin/mysql.server restart

查看server-id

 show variables like 'server_id';

posted on 2021-08-07 14:21  ims-  阅读(40)  评论(0编辑  收藏  举报

导航