Junjao

Programming, Software Engineering

ลง Postgresql ด้วย yum บน FedoraCore13 พฤษภาคม 9, 2011

Filed under: Uncategorized — จั่น @ 6:42 pm

ติดตั้ง Postgresql Server และตัว Dependencies อื่นๆ
1. #yum install postgresql-server
2. #chkconfig postgresql on

Initialize database ด้วย user root

3. #service postgresql initdb

จากข้างบนจะสร้าง user postgres มาให้เราทันทีในระบบ

มาถึงตรงนี้เราสามารถ Start postgresql Server ได้แล้ว ด้วยคำสั่ง

#/etc/rc.d/init.d/postgresql restart

———————
ทดสอบด้วย user postgres
4. #su – postgres

สร้างฐานข้อมูลทดสอบชื่อ “mydb”
5. $createdb mydb
6. $psql mydb
7. mydb=#select version();
8. mydb=#\q

อ้างอิง

http://wiki.postgresql.org/wiki/YUM_Installation

http://yum.pgrpms.org/

 

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.