grant all privileges on db_name.* to 'dbuser'@'192.168.1.3' identified by 'dbpassword'; flush privileges; grant all privileges on db_name.* to 'dbuser'@'192.168.1.2' identified by 'dbpassword'; --phpfensi.com flush privileges; 数据看配置,先修改第一台服务器的数据库配置文件,vi /etc/mysql/my.cnf 在[mysqld]的配置中加入以下信息: