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';