ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
Moderator: mindphp
-
- PHP Super Member
- Posts: 227
- Joined: 26/06/2017 10:15 am
ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
เมื่อผมจะสร้างดาต้าเบสแล้ว ก็ตั้งค่าดังรูปนี้
พอกด "ตกลง" มันขึ้นแบบนี้ ต้องแก้ไขยังไงครับ
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26692
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
ข้อความ Error copy มาแปะเป็นคำถามได้เลยครับ ไม่ต้อง cap เป็นภาพ
Port default #PGSQL เป็น 5432 นะครับ
และเช็ค user,password ดูอีกที ว่าได้สร้าง user นั้นไว้หรือยัง
Port default #PGSQL เป็น 5432 นะครับ
และเช็ค user,password ดูอีกที ว่าได้สร้าง user นั้นไว้หรือยัง
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- PHP Super Member
- Posts: 227
- Joined: 26/06/2017 10:15 am
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
วิธีแก้ไข connect pgadmin ไม่ได้
ขั้นตอนที่ 1 ให้เราทำตามลิ้งค์นี้นะครับ
https://www.mindphp.com/%E0%B8%9A%E0%B8% ... 12.04.html
ขั้นตอนที่ 2 ให้เราไปตั้งค่า pgadmin III ตามลิ้งค์ด้านล่างนี้นะครับ
https://www.mindphp.com/developer/21-sql ... sword.html
จากนั้นให้เรา เปิด terminal ขึ้นมา แล้วทำการพิมพ์คำสั่งนี้ลงไป
จากนั้นให้เราตั้งค่า password ใหม่ และยืนยัน password ดังรูป
ขั้นตอนที่ 1 ให้เราทำตามลิ้งค์นี้นะครับ
https://www.mindphp.com/%E0%B8%9A%E0%B8% ... 12.04.html
ขั้นตอนที่ 2 ให้เราไปตั้งค่า pgadmin III ตามลิ้งค์ด้านล่างนี้นะครับ
https://www.mindphp.com/developer/21-sql ... sword.html
จากนั้นให้เรา เปิด terminal ขึ้นมา แล้วทำการพิมพ์คำสั่งนี้ลงไป
Code: Select all
sudo passwd postgres
-
- PHP Super Member
- Posts: 227
- Joined: 26/06/2017 10:15 am
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
จากปัญหาที่ได้เจอมา ได้มีการแก้ไขให้ใช้งานได้เรียบร้อยแล้ว แต่ขั้นตอนที่ผมลงไปนั้นยังเป็นขั้นตอนที่ไม่สมบรุณ์ โดยยังขาดตกบกพ่องในบางส่วนครับ ให้ทำให้พอผมลง ubuntu ใหม่อีกครั้งแล้วทำตามขั้นตอน ปรากฏว่า ก็ยังไม่สามารถเชื่อมต่อฐานข้อมูลได้ครับ
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26692
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
ยังไม่ได้ ขึ้นข้อความว่าอะไร ครับ
มี Error ให้ดูไหม
มี Error ให้ดูไหม
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- PHP Super Member
- Posts: 227
- Joined: 26/06/2017 10:15 am
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
ภาพตอนจะสร้างฐานข้อมูล
ข้อความ Error
Code: Select all
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.
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 26692
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
เช็คด้วย command ก่อนว่า Service ของ PostgreSQL ทำงานหรือยัง
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- PHP Super Member
- Posts: 227
- Joined: 26/06/2017 10:15 am
Re: ติดตั้ง pgAdmin III แต่ไม่สามารถสร้างดาต้าได้
ผมลองใช้คำสั่ง
ผลที่ได้จากการรัน
ถือเป็นการเช็คการทำงาน service ของ postgresql หรือเปล่าครับ
Code: Select all
sudo systemctl status postgresql
Code: Select all
● 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.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
แก้ปัญหา pgAdmin Error pgadmin fe_sendauth no password supplied
by mindphp » 08/08/2015 4:52 am » in PostgreSQL - 2 Replies
- 2465 Views
-
Last post by LEG
26/12/2019 8:47 am
-
-
- 0 Replies
- 388 Views
-
Last post by bolue
10/06/2020 10:00 am
-
- 1 Replies
- 708 Views
-
Last post by Sarunyou
10/06/2016 4:51 pm
-
-
สร้างฐานข้อมูลใน Pgadmin 4 ไม่ได้ครับ Windows8
by chatee supasand » 11/06/2019 6:08 pm » in SQL - Database - 1 Replies
- 1319 Views
-
Last post by tatiya
12/06/2019 4:29 pm
-
-
- 1 Replies
- 2363 Views
-
Last post by mindphp
22/11/2017 3:52 pm
-
-
ขอทราบวิธีการติดตั้ง pgadmin 4 บน ubuntu ครับ
by benzas00123 » 11/01/2020 4:29 pm » in SQL - Database - 8 Replies
- 1069 Views
-
Last post by benzas00123
11/01/2020 5:38 pm
-
Who is online
Users browsing this forum: No registered users and 3 guests