0
在連接到我的RDS數據庫實例後,如何通過Eclipse連接到它並在我的數據庫上創建表(使用Java代碼而不是Eclipse API)。連接到您的RDS數據庫實例
CreateDBInstanceRequest createDBInstanceRequest = new CreateDBInstanceRequest()
.withEngine("MySQL")
.withLicenseModel("general-public-license")
.withEngineVersion("5.6.13")
.withDBInstanceClass("db.t1.micro")
.withMultiAZ(false)
.withAutoMinorVersionUpgrade(true)
.withAllocatedStorage(5)
.withDBInstanceIdentifier("mydbinstance")
.withMasterUsername("master")
.withMasterUserPassword("password")
.withDBName("dbname")
.withPort(3306);
DBInstance dbInstance = rds.createDBInstance(createDBInstanceRequest);
DescribeDBInstancesRequest instRequest = new DescribeDBInstancesRequest();
DescribeDBInstancesResult instResult = new DescribeDBInstancesResult();
Endpoint e = dbInstance.getEndpoint();
我需要下載mySQL連接器嗎?
我想我應該指定,使用Java代碼進行連接。 –