바뀜

둘러보기로 가기 검색하러 가기
1 바이트 제거됨 ,  2025년 6월 27일 (금)
잔글
29번째 줄: 29번째 줄:  
|DB를 만든 후에 DB와 연결할 수 있다.
 
|DB를 만든 후에 DB와 연결할 수 있다.
 
|<syntaxhighlight lang="python">
 
|<syntaxhighlight lang="python">
engine = create_engine("mysql+pymysql://{user}:{pw}@localhost/{db}"
+
engine = create_engine("mysql+pymysql://{user}:{pw}@{domain}/{db}"
 
                       .format(user="root",  # sql 계정 입력.
 
                       .format(user="root",  # sql 계정 입력.
 
                               domain='localhost',      # 도메인 주소
 
                               domain='localhost',      # 도메인 주소

둘러보기 메뉴