aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

CreateDBInstance operation: Character sets not supported on create for engine: mysql

Open ye opened this issue 12 years ago • 3 comments

I was trying to use --character-set-name utf8 when using aws cli to spin up a database instance. But I am getting this below error unless I remove the --character-set-name directive.

$ aws rds create-db-instance --engine MySQL \
    --license-model general-public-license \
    --engine-version 5.6.19 \
    --auto-minor-version-upgrade \
    --multi-az \
    --db-security-groups sg-xxxxxxxx \
    --db-instance-class db.m3.medium \
    --db-name magento-dbc \
    --allocated-storage 100 \
    --master-username test \
    --master-user-password test \
    --character-set-name utf8

A client error (InvalidParameterValue) occurred when calling the CreateDBInstance operation: Character sets not supported on create for engine: mysql and version5.6.19

ye avatar Sep 03 '14 18:09 ye

As per the documentation here http://docs.aws.amazon.com/AmazonRDS/latest/CommandLineReference/CLIReference-cmd-CreateDBInstance.html

Specifies the Oracle character set that the DB instance will use. For a list of supported character sets, go to Appendix: Oracle Character Sets Supported in Amazon RDS. Oracle only.

For MySQL you want to set the character_set_database parameter as part of a parameter group.

shlomoswidler avatar Sep 03 '14 18:09 shlomoswidler

Thanks for the clarification. Sounds like the CLI is working as expected.

jamesls avatar Sep 04 '14 17:09 jamesls

@shlomoswidler Thanks. But I use aws cli verion 1.4.2 and the manpage doesn't specify it's Oracle only - and majority of the people who uses this CLI tool is not going to google the web version of the help but rather use the manpage help.

@jamesls this is still a bug to me. aws manpage content needs to be in sync with the web version. See below.

$ pip freeze | grep aws
awscli==1.4.2
$ aws rds create-db-instance help

       --character-set-name (string)
          For supported engines, indicates that  the  DB  instance  should  be
          associated with the specified CharacterSet.

       --publicly-accessible | --no-publicly-accessible (boolean)
          Specifies  the accessibility options for the DB instance. A value of
          true specifies an Internet-facing instance with a  publicly  resolv-
          able  DNS  name,  which  resolves to a public IP address. A value of
          false specifies an internal instance with a DNS name  that  resolves
          to a private IP address.

          Default:  The default behavior varies depending on whether a VPC has
          been requested or not. The following list shows the default behavior
          in each case.

          o Default VPC: true

          o VPC: false

          If  no DB subnet group has been specified as part of the request and
          the --publicly-accessible value has not been set,  the  DB  instance
          will  be publicly accessible. If a specific DB subnet group has been
          specified as part of the request and the --publicly-accessible value
          has not been set, the DB instance will be private.

       --tags (list)
          A list of tags.

       Shorthand Syntax:

            Key value pairs, with multiple values separated by a space.
          --tags Key=string,Value=string Key=string,Value=string

       JSON Syntax:

          [
            {
              "Key": "string",
              "Value": "string"
            }
            ...
          ]

ye avatar Sep 05 '14 19:09 ye