Communications link failure Last packet sent to the server was 0 ms ago.问题解决

来源:互联网 发布:芒果tv网络电视 编辑:程序博客网 时间:2024/05/29 19:23

在使用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'

1 0
原创粉丝点击