0

嗨,在连接到我的 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 连接器吗?

4

1 回答 1

0

您可以尝试本指南,该指南向您展示如何在实例化后使用 Eclipse 连接到实例 - http://docs.aws.amazon.com/AWSToolkitEclipse/latest/GettingStartedGuide/tke_rds.html

于 2013-11-10T01:51:52.150 回答