1
- # Python x MySQL x Excel by Zinglecode
2
-
3
- Example Python codes that do the processes between MySQL database and Excel spreadsheet files.
1
+ # Python x MySQL x Excel
2
+
3
+ ตัวอย่างโปรเจ็คอ่าน/บันทึกข้อมูลระหว่าง Database MySQL กับไฟล์ Excel จากคลิปสอน MySQL เบื้องต้น Ep.1-2 ของ Zinglecode
4
4
5
5
## YouTube videos
6
6
7
- - [ MySQL #01 ] ( https://www.youtube.com/watch?v=axraNvtHjO4 )
8
- - [ MySQL #02 ] ( https://www.youtube.com/watch?v=xXDR9rxVfA8 )
7
+ - [ สอน MySQL เบื้องต้น #01 ] ( https://www.youtube.com/watch?v=axraNvtHjO4 )
8
+ - [ สอน MySQL เบื้องต้น #02 ] ( https://www.youtube.com/watch?v=xXDR9rxVfA8 )
9
9
10
10
## Setup database table
11
11
@@ -24,56 +24,50 @@ Example Python codes that do the processes between MySQL database and Excel spre
24
24
![ products_hashtags table structure] ( https://raw.githubusercontent.com/potchangelo/python-mysql-excel/dev/snapshots/yt-2-db-table-products-hashtags-structure.jpg " products_hashtags table structure ")
25
25
* products_hashtags table structure*
26
26
27
- ## Install Python 3 and pipenv
28
-
29
- 1 . Download Python 3 installation file from https://www.python.org/
30
-
31
- 2 . Install pipenv as global package by this command.
32
-
33
- ```
34
- pip install pipenv
35
- ```
36
-
37
- Note: for macOS with pre-installed Python 2, use pip3 instead of pip.
38
-
39
27
## Install and run project by PyCharm
40
28
41
- 1 . Download this project.
29
+ 0 . ติดตั้ง MySQL, MySQL Workbench, Python 3, Pipenv, และ PyCharm ลงเครื่องให้เรียบร้อยก่อน
30
+
31
+ 1 . ดาวน์โหลดโปรเจ็คนี้ลงเครื่อง
42
32
43
- 2 . Open PyCharm and choose File -> Open... -> Then select project folder
33
+ 2 . เปิดโฟลเดอร์โปรเจ็คใน PyCharm โดยเลือกที่เมนู File -> Open... -> และเลือกโฟลเดอร์
44
34
45
- 3 . Fix any warning recommended by PyCharm.
35
+ 3 . แก้ไข Warning อะไรก็ตามที่ขึ้นมาใน PyCharm ให้เรียบร้อย
46
36
47
- 4 . Make sure that every project packages is installed, by open PyCharm Terminal and type command.
37
+ 4 . ติดตั้ง Packages
48
38
49
39
```
50
40
pipenv install
51
41
```
52
42
53
- 5 . Open " main.py", right click on code area, select Run 'main'
43
+ 5 . เปิดไฟล์ main.py และคลิกขวาที่พื้นที่เขียนโค้ด แล้วเลือก Run 'main'
54
44
55
- 6 . Program will inform you, to type one file name from " scripts" folder to be run.
45
+ 6 . โปรแกรมจะให้ระบุชื่อไฟล์ที่ต้องการรัน ดูชื่อไฟล์ได้จากโฟลเดอร์ scripts (ใส่ไปแบบไม่ต้องเติม .py)
56
46
57
47
## Install and run project by CLI
58
48
59
- 1 . Download this project
49
+ 0 . ติดตั้ง MySQL, MySQL Workbench, Python 3, และ Pipenv ลงเครื่องให้เรียบร้อยก่อน
50
+
51
+ 1 . ดาวน์โหลดโปรเจ็คนี้ลงเครื่อง
52
+
53
+ 2 . เปิด Terminal หรือ Command Prompt หรือ PowerShell ที่โฟลเดอร์โปรเจ็ค
60
54
61
- 2 . Open Terminal or Command Prompt at project folder, then install packages.
55
+ 3 . ติดตั้ง Packages
62
56
63
57
```
64
58
pipenv install
65
59
```
66
60
67
- 3 . Activate pipenv environment.
61
+ 4 . Activate pipenv environment
68
62
69
63
```
70
64
pipenv shell
71
65
```
72
66
73
- 4 . Run " main.py"
67
+ 5 . รันไฟล์ main.py
74
68
75
69
```
76
70
python main.py
77
71
```
78
72
79
- 5 . Program will inform you, to type one file name from " scripts" folder to be run.
73
+ 6 . โปรแกรมจะให้ระบุชื่อไฟล์ที่ต้องการรัน ดูชื่อไฟล์ได้จากโฟลเดอร์ scripts (ใส่ไปแบบไม่ต้องเติม .py)
0 commit comments