Skip to content

ตัวอย่างโปรเจ็ค Python, MySQL, Excel จากคลิปสอน MySQL เบื้องต้น Ep.1-2 ของ Zinglecode

License

NotificationsYou must be signed in to change notification settings

potchangelo/python-mysql-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python x MySQL x Excel

ตัวอย่างโปรเจ็คอ่าน/บันทึกข้อมูลระหว่าง Database MySQL กับไฟล์ Excel จากคลิปสอน MySQL เบื้องต้น Ep.1-2 ของ Zinglecode

YouTube videos

Setup database table

products table structureproducts table structure

product_notes table structureproduct_notes table structure

categories table structurecategories table structure

hashtags table structurehashtags table structure

products_hashtags table structureproducts_hashtags table structure

Install and run project by PyCharm

  1. ติดตั้ง MySQL, MySQL Workbench, Python 3, Pipenv, และ PyCharm ลงเครื่องให้เรียบร้อยก่อน

  2. ดาวน์โหลดโปรเจ็คนี้ลงเครื่อง

  3. เปิดโฟลเดอร์โปรเจ็คใน PyCharm โดยเลือกที่เมนู File -> Open... -> และเลือกโฟลเดอร์

  4. แก้ไข Warning อะไรก็ตามที่ขึ้นมาใน PyCharm ให้เรียบร้อย

  5. ติดตั้ง Packages

pipenv install
  1. เปิดไฟล์ main.py และคลิกขวาที่พื้นที่เขียนโค้ด แล้วเลือก Run 'main'

  2. โปรแกรมจะให้ระบุชื่อไฟล์ที่ต้องการรัน ดูชื่อไฟล์ได้จากโฟลเดอร์ scripts (ใส่ไปแบบไม่ต้องเติม .py)

Install and run project by CLI

  1. ติดตั้ง MySQL, MySQL Workbench, Python 3, และ Pipenv ลงเครื่องให้เรียบร้อยก่อน

  2. ดาวน์โหลดโปรเจ็คนี้ลงเครื่อง

  3. เปิด Terminal หรือ Command Prompt หรือ PowerShell ที่โฟลเดอร์โปรเจ็ค

  4. ติดตั้ง Packages

pipenv install
  1. Activate pipenv environment
pipenv shell
  1. รันไฟล์ main.py
python main.py
  1. โปรแกรมจะให้ระบุชื่อไฟล์ที่ต้องการรัน ดูชื่อไฟล์ได้จากโฟลเดอร์ scripts (ใส่ไปแบบไม่ต้องเติม .py)

About

ตัวอย่างโปรเจ็ค Python, MySQL, Excel จากคลิปสอน MySQL เบื้องต้น Ep.1-2 ของ Zinglecode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published