File tree 3 files changed +15
-5
lines changed
3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,26 @@ CVE 데이터베이스 구축을 위한 프로그램입니다. MySQL 기반으
11
11
# Installation
12
12
귀하의 컴퓨터에 MySQL 데이터베이스에 접근할 수 있는 클라이언트가 요구됩니다.<br >
13
13
Python Framework을 기반으로 작동하므로, Python 3 이상의 인터프리터를 요구하며, 해당 모듈을 실행하려면 다음과 같은 명령어가 권장됩니다:<br >
14
+
15
+ 리눅스 기반에서는 파이썬 2 버전이 기본적으로 설치되어 있습니다.<br >
16
+ 그러나 해당 프로그램을 정상적으로 실행하기 위해서는 3.5.x버전 이상을 설치하셔야 합니다.<br >
17
+ 파이썬 3 이상이 설치되어 있지 않다면, 다음과 같은 명령어를 순서대로 실행하십시오:
18
+ ```
19
+ sudo apt-get update
20
+ sudo apt-get install python3
21
+ sudo apt-get install python3-pip
22
+ ```
23
+ 파이썬이 설치되어 있다면, 다음 명렁어를 순차적으로 입력하십시오:
14
24
```
15
25
git clone https://github.com/ruskonert/cve-mysql-python.git
16
26
cd cve-mysql-python
17
27
pip install -r requirements.txt
18
28
```
29
+ pip 2 버전이 이미 설치되어 있다면, 다음 명렁어로 대신 입력하십시오:
30
+ ```
31
+ pip3 install -r requirements.txt
32
+ ```
33
+
19
34
만약 파이썬 인터프리터가 없다면, 아래의 링크를 통해 Released된 실행 가능한 최신 파일을 다운로드하여 사용하십시오.<br >
20
35
https://github.com/Ruskonert/cve-mysql-python/releases
21
36
Original file line number Diff line number Diff line change @@ -278,8 +278,6 @@ def help(error=None):
278
278
if len (output_filetype ) != 0 :
279
279
if filename is None :
280
280
filename = table_name
281
- else :
282
- filename = table_name
283
281
for f in output_filetype :
284
282
export_filepath .append (base .export (filename , f , table_name ))
285
283
Original file line number Diff line number Diff line change @@ -189,8 +189,6 @@ def has_table(conn, table):
189
189
if isinstance (conn , MySqlBase ):
190
190
conn .send_query ("SHOW tables" )
191
191
for ele in conn .cur .fetchall ():
192
- # To debug message, Will be delete
193
- print (ele )
194
192
if ele ['Tables_in_{name}' .format (name = conn .database )].lower () == table .lower ():
195
193
return True
196
194
return False
@@ -199,7 +197,6 @@ def has_table(conn, table):
199
197
t = type (conn ).__str__ ))
200
198
201
199
def has_database (conn , database_name ):
202
- database_name = database_name .lower ()
203
200
try :
204
201
conn .send_query ("SHOW DATABASES" )
205
202
for element in conn .cur .fetchall ():
You can’t perform that action at this time.
0 commit comments