Access a MySQL database

버전 1.0.0.0 (20.6 KB) 작성자: Dimitri Shvorob
(with mym.m)
다운로드 수: 7K
업데이트 날짜: 2016/4/4

라이선스 보기

The submission collects several small utilities 'wrapping' Yannick Maret's 'mym' Matlab/MySQL interface, available from
http://sourceforge.net/projects/mym

Their application is illustrated by script mydemo.m, which uses the FEX download data presented in FEX submission 'A week on File Exchange'. First, we read the data (6 mixed-type columns, over 1 million rows) from a text file into a MySQL table, using 'load infile', passed through the basic mym interface. Next, we retrieve the table's structure and contents into Matlab workspace using TBATTR and TBREAD, and take the data back to MySQL with TBWRITE.

We observe that text-file-mediated exchange, accommodated on MySQL's side by 'load infile' and 'select into outfile', is a vastly superior option for large datasets; TBREAD and TBWRITE (the latter operating through multiple-row 'insert values' flushes) are more convenient for small datasets with many columns.

인용 양식

Dimitri Shvorob (2024). Access a MySQL database (https://www.mathworks.com/matlabcentral/fileexchange/17897-access-a-mysql-database), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

BSD