Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Run Time error: CDK Error: Failed string conversion (1 reply)

$
0
0
I am trying to connect to MySql database I created at AWS RDS with the following simple code:

try {
using namespace ::mysqlx;

Session sess("fds-symbol-usage-log.c68mzlz3vy3c.us-west-2.rds.amazonaws.com", 3306, "sa", "Trade123!");
Schema db = sess.getSchema("fds_symbol_usage_log");
....


However, I got error CDK Error: Failed string conversion at the very 1st line.
I am using Visual Studio 2015 and Connector/C++ 8.0.16. I have tried both x86 and x64, same error.

Not sure what I have missed, please help.

Thanks.

Michael

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>