搭建mysql主从错误集合

1

mysqld --verbose --help --log-bin-index=/tmp/tmp.Frnt2oibYI mysqld: Can't read dir of '/etc/mysql/conf.d/'

my.cnf是在/etc/mysql/conf.d/文件夹下,所以挂载的时候不要写/etc/mysql

2

COLLATION 'utf8_unicode_ci' is not valid for CHARACTER SET 'latin1'

配置文件改下字符集

[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld]
collation-server=utf8_general_ci
character_set_server=utf8
skip-character-set-client-handshake
skip-name-resolve

server_id=1
log-bin=mysql-bin
read-only=0
binlog-do-db=gulimall_ums
binlog-do-db=gulimall_pms
binlog-do-db=gulimall_oms
binlog-do-db=gulimall_sms
binlog-do-db=gulimall_wms
binlog-do-db=gulimall_admin
replicate-ignore-db=mysql
replicate-ignore-db=sys
replicate-ignore-db=information_schema
replicate-ignore-db=performance_schema

一个从库MYSQL占用内存大概250M

搭建mysql主从错误集合_第1张图片

搭建mysql主从错误集合_第2张图片

你可能感兴趣的:(mysql,数据库)