(1)配置数据库时
修改数据库名book_management
查看自己的数据库名:
postgresql怎么查看数据库名-Python学习网
(2)报错:
Connection to 192.168.XX.XX:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. Connection refused: connect Connection refused: connect
这语句翻译下,用户名密码是正确的,但是tcp/ip的连接失败了。这个解决方法其实就是去建立tcp/ip连接过程。
原因是宿主机并没有监听其他的主机接口,因此没有建立连接。
解决方法:
修改E:pgsqlmyDatepostgresql.conf 新增listen_addresses = '*' #what IP address(es) to listen on #默认 listen_addresses = 'localhost'



