หน้าเว็บ

วันจันทร์ที่ 16 พฤษภาคม พ.ศ. 2559

Permission and SQL Injection

เพิ่มเติมจากสัปดาห์ที่แล้ว
++++++++++++++++++++++++++++++
เพิ่ม Permission for SQLite
เพิ่ม SQL injection โดยใช้ PHP

วันพุธที่ 4 พฤษภาคม พ.ศ. 2559

Permission 04/05/2016

เพิ่มเติมจากสัปดาห์ที่แล้ว
++++++++++++++++++++++++++++++
เพิ่ม backup/restore
เพิ่ม test user MySQL
เพิ่ม file log

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

วันอังคารที่ 16 กุมภาพันธ์ พ.ศ. 2559

Entity-Relationship Diagram

ER Diagram
  • Entity เป็น object ที่มีอยู่และแตกต่างจาก obj. อื่น entity ต้องไม่ซ้ำกัน  ใน entity ที่คล้ายๆกันเราจะเรียก entity type
  • Relationship เป็นความสัมพันธ์ของ entity ที่ entity หนึ่ง จากแต่ละการรวม entity type ในกรณีที่ relationship type จะหมายถึง ความสัมพันธ์ของ entity type
  • Attribute เป็นคุณลักษณะของ entity type ในความหมายหนึ่ง entity จะเป็นการอธิบายใน database ที่มีชุดของ attributes