MATLAB通過ODBC連線資料庫方法
阿新 • • 發佈:2020-08-07
## MATLAB通過ODBC連線資料庫方法
#### 1、首先建立資料庫,我在這裡用到的是MySQL 8.0
#### 2、建立ODBC資料來源,參考連結:
#### https://www.cnblogs.com/benpao1314/p/10120700.html;
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203104101-1266243685.png)
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203233587-2048990344.png)
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203244199-1635343636.png)
#### 然後在MATLAB中開啟“Database Explorer”APP,選擇:Configure ODBC data source
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203322043-1438296484.png)
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203333284-2796122.png)
![](https://img2020.cnblogs.com/blog/1919874/202008/1919874-20200807203339167-1028151225.png)