일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Eclipse
- boost
- if
- List
- dataframe
- sql
- ubuntu
- SSH
- expect
- pi
- sqlite
- Unity
- conda
- autovacuum
- null
- with
- C++
- ngui
- mysql
- Shader
- 쉘
- python
- DROP
- c++11
- SVN
- pandas
- awk
- FIND
- 배열
- postgresql
- Today
- Total
목록mysql (3)
その先にあるもの…
Error Code: 2013. Lost connection to MySQL server during queryEdit → Preferences → SQL Editor → DBMS connection read time out (in seconds): 30을 늘려보기 Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statementSHOW VARIABLES LIKE "secure_file_priv:;로 나온 경로에 파일을 위치해서 읽어보기
MySql에서 CSV파일을 직접 INSERT하기 #secrue-file-priv 옵션의 파일 경로load data infile 'C:/ProgramData/MySQL/MySQL Server 5.7/Uploads/fileName.csv'into table 테이블 네임fields terminated by ','enclosed by '"'lines terminated by '\n'ignore 1 rows 참고 : https://dev.mysql.com/doc/refman/5.7/en/load-data.html
from sqlalchemy engine = sqlalchemy.create_engine( "mysql://username:password@host:port/databasename", encoding='utf8' ) conn = engine.connect() #dataframe의 coumns의 이름과 table의 coumns의 이름이 같아야 함.dataframe.to_sql( name="SQL table name", con=engine, if_exists='append', index=False ) conn.close()