Skip to content

Commit

Permalink
주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
sohwaje committed Nov 25, 2020
1 parent 15df3f6 commit 6dd7af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions create_test_data_for_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def create_datas():


if __name__ == '__main__':
create_datas()
create_datas() # 데이터 생성
current_dir = pathlib.Path().absolute()
dump_file = f"{current_dir}/{filename}"
print("덤프파일 경로 : ", dump_file)
mypass = getpass("패스워드를 입력해주세요 : ")
os.system(f"mysql -u root -p{mypass} < {dump_file}")
os.system(f"mysql -u root -p{mypass} < {dump_file}") # 생성한 데이터(sql) 파일을 DB에 import

0 comments on commit 6dd7af5

Please sign in to comment.