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]的配置中加入以下信息: