RDS port issue fixed
This commit is contained in:
@@ -335,7 +335,12 @@ function DatabaseConnectionCommand({ engine, address, port, database, username }
|
||||
: engine.includes('mysql') || engine.includes('mariadb')
|
||||
? `mysql --host=${host} --port=${port} --user=${username} --password ${database}`
|
||||
: `sqlcmd -S ${host},${port} -U ${username} -P <password> -d ${database}`
|
||||
return <div className="metadata-block"><p className="metric-label">Terminal connection</p><p className="copy-value mono">{command}<CopyValueButton value={command} label="Connection command" /></p><p className="muted compact-text">Use the endpoint, port, database, and username above in DBeaver or another database client. The password is never retained by the console.</p></div>
|
||||
const uri = engine.includes('postgres')
|
||||
? `postgresql://${username}:<password>@${host}:${port}/${database}`
|
||||
: engine.includes('mysql') || engine.includes('mariadb')
|
||||
? `mysql://${username}:<password>@${host}:${port}/${database}`
|
||||
: `Server=${host},${port};Database=${database};User Id=${username};Password=<password>;`
|
||||
return <div className="metadata-block"><p className="metric-label">Terminal connection</p><p className="copy-value mono">{command}<CopyValueButton value={command} label="Connection command" /></p><p className="metric-label">Client connection URI</p><p className="copy-value mono">{uri}<CopyValueButton value={uri} label="Connection URI" /></p><p className="muted compact-text">Paste the URI into a compatible database client, then replace the password placeholder. The password is never retained by the console.</p></div>
|
||||
}
|
||||
|
||||
function DatabaseLifecycleSection({ status }: { status?: string | null }) {
|
||||
|
||||
Reference in New Issue
Block a user