嗨,在连接到我的 RDS 数据库实例后,我如何通过 Eclipse 连接到它并在我的数据库上创建表(使用 Java 代码而不是 Eclipse API)。
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 连接器吗?