Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @baronofclubs,
You’ll need to change your connection code like so
MysqlConnectionPoolDataSource dataSource = new MysqlConnectionPoolDataSource();
dataSource.setUser("adminusername");
dataSource.setPassword("password");
dataSource.setServerName("db-example-nyc1-01-do-user-123456-0.db.ondigitalocean.com:25060");
dataSource.setDatabaseName("defaultdb");
The change is having the Port in the setServerName function.
If you additionally, try to connect and get an error like/or something similar as :
The server requested authentication method unknown to the client
Then you’ll need to create a new user with different authentication method that the default. To achieve this, you’ll need to connect via a Terminal to your MySQL server and use the CREATE USER command in there.
If you are having difficulties, you can check the following video here : https://www.youtube.com/watch?v=EAZoXK3i7eA&t=116s
Although it’s for PHP and MySQL Managed Database, the principle should be the same.
Regards, KDSys