我尝试通过文章在数字海洋(https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-on-postgresql-on-an-ubuntu-12-04-vps)上设置“主-2从站”配置。
第一个从成功地连接到主人和工作良好。第二个从站无法连接。来自postgresql (第二个从站)日志:
2015-11-02 11:17:35 MSK [14198-1] FATAL: could not connect to the primary server: FATAL: too m
解决了的官方名称是韩国,。当你使用它的时候,你可能会错过任何空白。
我正在使用Last.FM API,当我尝试(按国家获取Last.fm上最受欢迎的艺术家)时,我需要输入一个参数:
country (Required) : A country name, as defined by the ISO 3166-1 country names standard.
然后我检查了ISO 3116-1,发现韩国的名字是韩国,但它不起作用.然后我尝试了韩国,都失败了。我应该输入什么?
http://ws.audioscrobbler.com/2.0/?method=geo.gettopartists&a
$country = $row['COUNTRY']; 国家/地区 Singapore
Japan
China
China
Singapore
Japan
China
Malaysia
Malaysia
South Korea
Malaysia 除韩国外,所有记录都包含重复的值。我想用变量选择韩国。不使用Id。