网上down的程序的一部分:
timeoutA=logintimeout(5)
% Connect to the RSC database via JDBC
connA=database('test', 'postgres', '123','org.postgresql.Driver',...
'jdbc:postgresql://192.168.0.46:5432/test')
% Check the database status.
ping(connA)
close(connA)
显示错误:
connA =
Instance: 'test'
UserName: 'postgres'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: 'No suitable driver found for jdbc:postgresql://192.168.0.46:5432test'
Handle: 0
TimeOut: []
AutoCommit: 'off'
Type: 'Database Object'??? Error using ==> database.ping at 153
Invalid connection.Error in ==> data2 at 6
ping(connA)
我已经在本机(192.168.0.46)建立了test;
timeoutA=logintimeout(5)
% Connect to the RSC database via JDBC
connA=database('test', 'postgres', '123','org.postgresql.Driver',...
'jdbc:postgresql://192.168.0.46:5432/test')
% Check the database status.
ping(connA)
close(connA)
显示错误:
connA =
Instance: 'test'
UserName: 'postgres'
Driver: []
URL: []
Constructor: [1x1 com.mathworks.toolbox.database.databaseConnect]
Message: 'No suitable driver found for jdbc:postgresql://192.168.0.46:5432test'
Handle: 0
TimeOut: []
AutoCommit: 'off'
Type: 'Database Object'??? Error using ==> database.ping at 153
Invalid connection.Error in ==> data2 at 6
ping(connA)
我已经在本机(192.168.0.46)建立了test;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货