Connecting to MySQL Amazon RDS from VB.NET Visual Studio 2013


I have installed MySQL for Visual Studio and the .net connector and I have tried this connection string in my app.config:

<add name="mysqlGrowercon" connectionString="Server=*****;Port=3306;Database=GrowerReports;Uid=Developer;Pwd=*****"
            providerName="MySQL.Data.MySQLClient" />

And I've tried adding the connection through the Data Source Configuration Wizard but either way I get:

There has been an error, The handshake failed due to an unexpected packet format.

I can connect okay to a SQL Server Amazon RDS just not this MySQL Amazon RDS.
Anyone know what I'm doing wrong?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Shalom CarmelCTOCommented:
Are you sure that you have all the connection string parameters as they should be?
This is a screenshot of a rds mysql instance in the aws console.
rdsimg.pngThe "server" attribute is the one masked with red, the "database" attribute is the value masked with yellow.  

Additionally there is the rds security group which is often the culprit of failed connections. Check if it allows your IP address.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DiscoStubaccaAuthor Commented:

String parameters were all right, it was to do with the rds vpc security group as you said.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.