We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1a30c commit b52e8fcCopy full SHA for b52e8fc
web/renderer/components/pageComponents/ConnectionsPage/NewConnection/context/utils.tsx
@@ -7,7 +7,7 @@ export function getConnectionUrl(state: ConfigState): string {
7
if (state.connectionUrl) return state.connectionUrl;
8
const prefix = state.type === DatabaseType.Mysql ? "mysql" : "postgresql";
9
const password = state.password ? `:${state.password}` : "";
10
- return `${prefix}://${state.username}${password}@${state.host}:${state.port}`;
+ return `${prefix}://${state.username}${password}@${state.host}:${state.port}/${state.database}`;
11
}
12
13
type GetCanSubmitReturnType = {
0 commit comments