เพิ่มเติมจากสัปดาห์ที่แล้ว
++++++++++++++++++++++++++++++
เพิ่ม Permission for SQLite
เพิ่ม SQL injection โดยใช้ PHP
วันจันทร์ที่ 16 พฤษภาคม พ.ศ. 2559
วันพุธที่ 4 พฤษภาคม พ.ศ. 2559
Permission 04/05/2016
เพิ่มเติมจากสัปดาห์ที่แล้ว
++++++++++++++++++++++++++++++
เพิ่ม backup/restore
เพิ่ม test user MySQL
เพิ่ม file log
++++++++++++++++++++++++++++++
เพิ่ม 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
++++++++++++++++++++++++++++++
การตั้งค่าสิทธิ์ไฟล์ของผู้ใช้จะมีด้วยกัน 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 -->
เครื่องคอมพิวเตอร์ที่ใช้เปรียบเทียบ
+++++++++++++++++
PDF File
+++++++++++++++++
-----------------------------------------------
+++++++++++++++++
ลงขั้นตอนตามในเว็บดังนี้
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
ศึกษาขั้นตอนการติดตั้งที่
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 |
วันจันทร์ที่ 28 มีนาคม พ.ศ. 2559
วันอังคารที่ 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
วันจันทร์ที่ 8 กุมภาพันธ์ พ.ศ. 2559
Queries in relational algebra
Complete set เป็น relational algebra ที่เพียงพอต่อการใช้งาน
σ, π, ᴜ, ρ, ⁻, ×
σ, π, ᴜ, ρ, ⁻, ×
วันจันทร์ที่ 1 กุมภาพันธ์ พ.ศ. 2559
วันเสาร์ที่ 23 มกราคม พ.ศ. 2559
SQL Tutorial
- SQL Home
- SQL Intro
- SQL Syntax
- SQL Select
- SQL Distinct
- SQL Where
- SQL And & Or
- SQL Order By
- SQL Insert Into
- SQL Update
- SQL Delete
วันพุธที่ 20 มกราคม พ.ศ. 2559
วันอังคารที่ 19 มกราคม พ.ศ. 2559
Grade on Spreadsheet
ออกแบบ การเก็บข้อมูลเกรดที่ได้ใน Spreadsheet
โดยในที่นี้เราจะออกแบบการเก็บ ดังนี้1. รหัสวิชา (SUBJECT CODE)
2. ชื่อวิชา (SUBJECT)
3. หน่วยกิต (CREDIT)
4. ตอนเรียน (COURSE)
5. เกรด (GRADE)
6. ระดับเกรด
7. ภาคเรียน (SEMESTER)
8. คะแนนเฉลี่ยประจำภาค
9. คะแนนเฉลี่ยสะสม
สมัครสมาชิก:
บทความ (Atom)