필터 지우기
필터 지우기

Error using database.j​dbc.connec​tion/selec​t (line 74) Invalid connection.

조회 수: 2 (최근 30일)
Oleh Chaharyn
Oleh Chaharyn 2019년 5월 2일
답변: Bob Hickish 2020년 5월 18일
I can't connect to database using jdbc driver:
Error using database.jdbc.connection/select (line 74)
Invalid connection.
I tried to reinstall driver, updated javaclasspath but it doesn't work.
Is there any solution?

답변 (1개)

Bob Hickish
Bob Hickish 2020년 5월 18일
I'm not sure if we had the same issue, but I managed to resolve mine by using these three functions in this order:
opts = configureJDBCDataSource('Vendor','PostgreSQL')
opts = setConnectionOptions(opts,"DataSourceName","PostgreSQL",..)
conn = database(databasename,username,password,driver,url)
I then checked I was connected to the database with: isopen(conn)

카테고리

Help CenterFile Exchange에서 Database Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by