1. 程式人生 > >Communications link failure Last packet sent to the server was 0 ms ago.問題解決

Communications link failure Last packet sent to the server was 0 ms ago.問題解決

在使用Matlab連線Mysql資料庫的時候常常出現這個問題,最後發現因為使用的是網上的資料庫,通過本地的Mysql建立一個本地的工作區間,而出現上面的問題,原因很簡單,電腦沒聯網。。。。

錯誤資訊如下:
Driver: []
            URL: []
    Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
        Message: 'Communications link failure


Last packet sent to the server was 0 ms ago.'
         Handle: 0
        TimeOut: 0
     AutoCommit: 'off'
           Type: 'Database Object'