Malformed Packet error when call mysql_real_connect
Posted by: Scott Dudek
Date: July 30, 2015 03:14PM

I am using mysql connector C 6.1.6. When I call mysql_real_connect() to connect to a non-local database, it returns a "malformed packet" error (error 2027).

My function call looks like mysql_real_connect( sqlinit, host, dbuser, dbpw, db, port, NULL, 0), where sqlinit has been initialized by mysql_init( (MYSQL*)NULL ), and port is 3306.

Does anyone have any insight on this? A day's worth of web searches has gotten me no closer.


Options: ReplyQuote

Written By
Malformed Packet error when call mysql_real_connect
July 30, 2015 03:14PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.