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

[Solved] Can't connect MySQL (MySQL error code: 2013, SQLState: HY000 ) (2 replies)

$
0
0
When I try to connect my MySQL database with MySQL Connector/C++ i get this error :

Lost connection to MySQL server at 'reading initial communication packet', system error: 0 (MySQL error code: 2013, SQLState: HY000 )

My MySQL database is working fine because I can connect it with PHP and even with MySQL++. I even opened my database to remote connections to check if it fix the problem but I get the same error.

Versions :
MySQL : mysql Ver 14.14 Distrib 5.1.47, for unknown-linux-gnu (x86_64) using readline 6.1
MySQL Connector/C : mysql-connector-c-6.0.2-linux-glibc2.3-x86-64bit
MySQL Connector/C++ : mysql-connector-c++-1.0.5-linux-glibc2.3-x86-64bit
gcc : 4.5.0

Anyone know how I could fix this problem ?

Viewing all articles
Browse latest Browse all 527

Trending Articles