Malformed Packet error when call mysql_real_connect
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.
Thanks,
Scott
Subject
Views
Written By
Posted
Malformed Packet error when call mysql_real_connect
7970
July 30, 2015 03:14PM
4466
August 06, 2015 02:22PM
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.