MySQL Forums
Forum List  »  Connector/Node.js

Re: Extract data from TCP port
Posted by: Rui Quelhas
Date: May 14, 2019 01:56AM

Hi Jothi,

I believe the issue your facing is related to the fact that you are simply constructing the "INSERT" query with the raw data you get from the socket, which is unstructured at best or a pure Node.js Buffer at most. You need to make sure it is properly stringified with the right convention - "(value-1, ..., value-n)".

In any case, it does not look like an issue with the MySQL driver you are using, which by the way is a community-driven project (https://github.com/mysqljs/mysql), not the official MySQL connector. So, this is probably not the best place to get help.

If you're interested in the official MySQL offer, you can check https://www.npmjs.com/package/@mysql/xdevapi.

Options: ReplyQuote


Subject
Written By
Posted
Re: Extract data from TCP port
May 14, 2019 01:56AM


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.