หน้าเว็บ

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

A2: Database Scurity (1)

compare with file-system security(permission)
++++++++++++++++++++++++++++++
การตั้งค่าสิทธิ์ไฟล์ของผู้ใช้จะมีด้วยกัน 3 สิทธิ์ คือ read, write และ execute
ในหนึ่งไฟล์เราต้องกำหนดสิทธิ์ดังนี้
user        the user that owns the file
group     user in the files group
other      very other user

วันจันทร์ที่ 25 เมษายน พ.ศ. 2559

MariaDB, Postgres and SQLite (2)

ลงโปรแกรมใน Ubuntu
+++++++++++++++++
ลงขั้นตอนตามในเว็บดังนี้
MariaDB ---> http://www.liquidweb.com/kb/how-to-install-mariadb-5-5-on-ubuntu-14-04-lts/
Postgres --> https://help.ubuntu.com/community/PostgreSQL
SQLite -->

เครื่องคอมพิวเตอร์ที่ใช้เปรียบเทียบ
+++++++++++++++++

Processor: Intel(R) Core(TM) i5-6500U CPU@2.30GHz 2.40 GHz
Installed memory(RAM): 8.00 GB
System type: 64-bit OS, x64-based processor


PDF File
 +++++++++++++++++

-----------------------------------------------

วันอังคารที่ 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