ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
โพสต์แล้ว: 30/06/2017 3:46 pm
เมื่อผมจะสร้างดาต้าเบสแล้ว ก็ตั้งค่าดังรูปนี้
พอกด "ตกลง" มันขึ้นแบบนี้ ต้องแก้ไขยังไงครับ
เว็บบอร์ด PHP ใช้งานจริงใน ธุรกิจ ด้วยเทคโนโลยี Ajax HTML5 Framework SQL CMS CRM ERP Hosting
https://www.mindphp.com/forums/
โค้ด: เลือกทั้งหมด
sudo passwd postgres
โค้ด: เลือกทั้งหมด
Server doesn't listen
The server doesn't accept connections: the connection library reports
could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5433?
If you encounter this message, please check if the server you're trying to contact is actually running PostgreSQL on the given port. Test if you have network connectivity from your client to the server host using ping or equivalent tools. Is your network / VPN / SSH tunnel / firewall configured correctly?
For security reasons, PostgreSQL does not listen on all available IP addresses on the server machine initially. In order to access the server over the network, you need to enable listening on the address first.
For PostgreSQL servers starting with version 8.0, this is controlled using the "listen_addresses" parameter in the postgresql.conf file. Here, you can enter a list of IP addresses the server should listen on, or simply use '*' to listen on all available IP addresses. For earlier servers (Version 7.3 or 7.4), you'll need to set the "tcpip_socket" parameter to 'true'.
You can use the postgresql.conf editor that is built into pgAdmin III to edit the postgresql.conf configuration file. After changing this file, you need to restart the server process to make the setting effective.
If you double-checked your configuration but still get this error message, it's still unlikely that you encounter a fatal PostgreSQL misbehaviour. You probably have some low level network connectivity problems (e.g. firewall configuration). Please check this thoroughly before reporting a bug to the PostgreSQL community.
โค้ด: เลือกทั้งหมด
sudo systemctl status postgresql
โค้ด: เลือกทั้งหมด
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor prese
Active: active (exited) since ศ. 2017-07-14 11:36:40 ICT; 26s ago
Main PID: 9777 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/postgresql.service
ก.ค. 14 11:36:40 com010-X450JF systemd[1]: Starting PostgreSQL RDBMS...
ก.ค. 14 11:36:40 com010-X450JF systemd[1]: Started PostgreSQL RDBMS.
ก.ค. 14 11:36:47 com010-X450JF systemd[1]: Started PostgreSQL RDBMS.
โค้ด: เลือกทั้งหมด
sudo apt-get update && sudo apt-get upgrade
โค้ด: เลือกทั้งหมด
sudo apt-get purge postgresql*
โค้ด: เลือกทั้งหมด
sudo apt-get -f install
โค้ด: เลือกทั้งหมด
sudo apt-get install postgresql
โค้ด: เลือกทั้งหมด
sudo su
โค้ด: เลือกทั้งหมด
su - postgres
โค้ด: เลือกทั้งหมด
psql
โค้ด: เลือกทั้งหมด
\password
โค้ด: เลือกทั้งหมด
ENTER YOUR PASSWORD (ใส่พาสเวิดได้ตามต้องการ)
โค้ด: เลือกทั้งหมด
\q
โค้ด: เลือกทั้งหมด
exit