unable to connect to AWS MySQL and PostgreSQL
7 views (last 30 days)
Show older comments
I created AWS databases both MySQL and PostgreSQL. I collected endpoints, ports, and credentials. I downloaded the latest JDK and the lastest few drivers to experiment. My attempts to connect fail. I loaded drivers from the link provided in the matlab documentation (https://www.mathworks.com/products/database/driver-installation.html). I am new at this. I am working on both an imac and a windows machine. Any guidance?
Example:
opts = configureJDBCDataSource("Vendor","PostgreSQL");
endpoint = "XXXX.us-east-2.rds.amazonaws.com";
connector = "/XXXX/postgresql-42.2.9.jre7.jar";
opts = setConnectionOptions(opts ,...
"DataSourceName","SQL" ,...
"Server", endpoint ,...
"PortNumber", 5432 ,...
"JDBCDriverLocation", connector );
username = "XXXX";
password = "XXXX";
[status,msg] = testConnection(opts,username,password)
'JDBC Driver Error: The connection attempt failed.'
'JDBC Driver Error: No suitable driver found for XXXX.us-east-2.rds.amazonaws.com'
etc
2 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Database Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!