MySQL主服务器配置步骤如下:1) 登录MySQL数据库:mysql -uroot -p test;2) 设置从服务器授权用户:grant all on . to user@192.168.10.2 identified by 'pass'; 或 grant replication slave on . to user@192.168.10.2 identified by 'pass';