728x90
in the terminal for local port forwarding:
ssh -N -v username@hostname -L3306:127.0.0.1:3306
sqlalchemy for the connection :
from sqlalchemy import create_engine
engine = create_engine("mysql+pymysql://user:password@127.0.0.1:3306/dbname?charset=utf8"
df.to_sql(con=engine, name='dest_table', if_exists='replace')
728x90
'Data Science > Python' 카테고리의 다른 글
Pandas의 한계를 극복한 5가지 라이브러리: Dask, Vaex, Modin, Cudf, Polars (0) | 2023.09.21 |
---|---|
[Image Analysis] Completely Black or White Image Detection (0) | 2023.07.27 |
[python] Chrome web-driver options : speed up page loading. (0) | 2023.01.31 |
[python] Dask Parallel Computing Example (0) | 2023.01.28 |
[python] About Dask (0) | 2023.01.28 |
최근댓글