默认情况下这两个数据库都是不能远程访问的,要远程访问,分别修改:
postgresql:
在pg_hba.conf中加上host all all IP/32 trust
在postgresql.conf 修改listen_addresses = IP 如listen_addresses = '*'
添加一个远程帐户:
grant all privileges on *.* to 帐号@IP identified by "密码";
如 grant all privileges on *.* to root@"%" identified by "123456"; %代表所有