หน้าเว็บ

วันอังคารที่ 19 เมษายน พ.ศ. 2559

PostgreSQL,MariaDB,SQLite

PostgresSQL
ศึกษาขั้นตอนการติดตั้งที่
https://www.digitalocean.com/community/tutorials/how-to-create-remove-manage-tables-in-postgresql-on-a-cloud-server

Tutorial Postgres:
http://www.tutorialspoint.com/postgresql/postgresql_create_database.htm

Note:
database Name don't upper-case

แก้ปัญหา
 python can't connect psql

https://help.ubuntu.com/stable/serverguide/postgresql.html

use postgres 9.3
thus edit the file  /etc/postgresql/9.3/main/pg_hba.conf
#TYPE    DATABASE    USER        ADDRESS      METHOD
local        all                   postgres                          md3



sudo -u postgres psql tinycollege

\l  ---> check available database list using
\c databasename  ---> to connect/select a desired database
\d  ---> to list down all the tables in attached database
\d tablename ---> to describe each table

ไม่มีความคิดเห็น:

แสดงความคิดเห็น