<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Connector/Node.js</title>
        <description>Forum for Connector/Node.js</description>
        <link>https://forums.mysql.com/list.php?44</link>
        <lastBuildDate>Sun, 19 Apr 2026 14:03:50 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?44,724217,724217#msg-724217</guid>
            <title>&#039;Column name is required in ColumnIdentifier.&#039; (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,724217,724217#msg-724217</link>
            <description><![CDATA[ Team,<br />
<br />
Please help. <br />
I am having trouble with an update() function on a MYSQL 8.4 DB on OCI.<br />
<br />
Getting the following error:<br />
info: {<br />
    severity: 0,<br />
    code: 5152,<br />
    sqlState: &#039;HY000&#039;,<br />
    msg: &#039;Column name is required in ColumnIdentifier.&#039;<br />
   }<br />
 Top Lines of Error: at BaseHandler.&lt;computed&gt;(/nmsv7.2/api/node_modules/@mysql/xdevapi/lib/Protocol/InboundHandlers/BaseHandler.js:121:17)<br />
at Array.entry (/nmsv7.2/api/node_modules/@mysql/xdevapi/lib/Protocol/InboundHandlers/BaseHandler.js:92:29)<br />
at WorkQueue.process (/nmsv7.2/api/node_modules/@mysql/xdevapi/lib/WorkQueue.js:77:19)<br />
<br />
I dumbed down the update to the following:<br />
 var acts_info = session.getSchema(&#039;schema).getTable(&#039;acts_info&#039;)<br />
    <br />
    <br />
<br />
    acts_info.update().where(&#039;customer_number like :customer_number&#039;)<br />
                     .bind(&#039;customer_number&#039;, data.customer_number)<br />
                     .set(&#039;contact_via_mail&#039;, data.contact_via_mail)<br />
                     .execute()<br />
<br />
<br />
Let me know if you have a solution.<br />
<br />
Thanks,<br />
<br />
Brian]]></description>
            <dc:creator>Brian Boyer</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 10 May 2024 09:41:58 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,710250,710250#msg-710250</guid>
            <title>Introducing JSON/Relational Duality for MySQL REST Service (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,710250,710250#msg-710250</link>
            <description><![CDATA[ Introducing JSON/Relational Duality for MySQL REST Service<br />
- <a href="https://blogs.oracle.com/mysql/post/introducing-jsonrelational-duality-for-mysql-rest-service"  rel="nofollow">https://blogs.oracle.com/mysql/post/introducing-jsonrelational-duality-for-mysql-rest-service</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Thu, 19 Oct 2023 19:11:15 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,710014,710014#msg-710014</guid>
            <title>Node X DevAPI can&#039;t getSession() from table (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,710014,710014#msg-710014</link>
            <description><![CDATA[ According to <a href="https://dev.mysql.com/doc/dev/connector-j/latest/?com/mysql/cj/xdevapi/Session.html"  rel="nofollow">https://dev.mysql.com/doc/dev/connector-j/latest/?com/mysql/cj/xdevapi/Session.html</a><br />
<br />
Interface Table inherits from DatabaseObject the getSession() method.<br />
<br />
Calling this method on table from Node.js v20.7.0 with @mysql/xdevapi 8.0.33 in the following way<br />
<br />
    const session = await mysqlx.getSession(config);<br />
    const schema = session.getSchema(config.schema);<br />
    const table = schema.getTable(&#039;property&#039;);<br />
    const session_from_table_test = await table.getSession();<br />
<br />
returns the following error:<br />
    /node_modules/@mysql/xdevapi/lib/DevAPI/DatabaseObject.js:56<br />
            return session(connection);<br />
                   ^<br />
<br />
TypeError: session is not a function]]></description>
            <dc:creator>Michael Dayah</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 17 Nov 2023 19:50:41 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,709968,709968#msg-709968</guid>
            <title>Undefined text (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,709968,709968#msg-709968</link>
            <description><![CDATA[ Hello, i have text in SQL can i get it in JavaScript?<br />
<br />
Like that :<br />
<br />
Ø§Ù„Ø£Ù…Ù† Ø§Ù„Ø¹Ø§Ù… - Ø¬Ù†Ø¯ÙŠ Ù…ØªØ¯Ø±Ø¨]]></description>
            <dc:creator>aBout aBout</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 15 Sep 2023 10:47:14 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,709127,709127#msg-709127</guid>
            <title>Reconnect logic on connection close in X DevAPI of MySql using @mysql/xdevapi module in Node.js (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,709127,709127#msg-709127</link>
            <description><![CDATA[ I am using X DevAPI of MySql v8.0.33 using @mysql/xdevapi v8.0.33.<br />
<br />
I have reconnect logic added but that is not working. Here is that code.<br />
<br />
const mysqlx = require(&#039;@mysql/xdevapi&#039;)<br />
<br />
async function createSession() {<br />
  try {<br />
    const session = await mysqlx.getSession({<br />
      user: &#039;your_user&#039;,<br />
      password: &#039;your_password&#039;,<br />
      host: &#039;your_host&#039;,<br />
      port: 33060, // default MySQL X Protocol port<br />
    });<br />
<br />
    // Handle connection close by reconnecting the session<br />
    session[&#039;_client&#039;][&#039;_stream&#039;].on(&#039;close&#039;, () =&gt; {<br />
      console.log(&#039;Connection closed. Reconnecting...&#039;);<br />
      createSession(); // Re-establish the session<br />
    });<br />
<br />
    // Use the session for your database operations<br />
    // ...<br />
<br />
  } catch (error) {<br />
    console.error(&#039;Error connecting to MySQL:&#039;, error);<br />
  }<br />
}<br />
<br />
// Create the initial session<br />
createSession();<br />
I am getting error<br />
<br />
TypeError: Cannot read properties of undefined (reading &#039;_stream&#039;)<br />
This error means that session[&#039;_client&#039;] is undefined.<br />
<br />
What is wrong with my reconnect logic?]]></description>
            <dc:creator>Alok Singh</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 04 Sep 2023 09:55:29 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,707488,707488#msg-707488</guid>
            <title>Understanding SSL connection with MySQL protocol (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,707488,707488#msg-707488</link>
            <description><![CDATA[ I am writing a MySQL connection utility from scratch in Node.js in order to better understand the details of the protocol and extend my knowledge of Node TLS.  The problem I am having is how to execute the upgrade from a Net socket to a TLS socket.<br />
<br />
Following the MySQL documentation I can create a socket and connect to MySQL, get back the greeting packet and parse it.  I believe I am formulating the SSL Request packet properly:<br />
<br />
&lt;Buffer 20 00 00 01 ff ff ff cf 00 00 ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00&gt;<br />
<br />
I cannot seem to get the SSL connection correct though.<br />
<br />
I am performing the following:<br />
<br />
```javascript<br />
let secureSocket = null;<br />
const context = {<br />
    ca: &quot;ca cert text&quot;,<br />
    cert: &quot;cert text&quot;,<br />
    minVersion: &quot;TLSv1.3&quot;<br />
};<br />
<br />
socket.write(sslRequest);<br />
<br />
secureSocket = new TLSSocket(socket, {<br />
    rejectUnauthorized : true,<br />
    requestCert        : true,<br />
    secureContext      : context,<br />
    isServer           : false<br />
});<br />
<br />
connectSecure({<br />
    host: env[environment].host,<br />
    port: env[environment].port,<br />
    secureContext: sslContext,<br />
    socket: secureSocket<br />
});<br />
```<br />
<br />
<br />
I am getting this error:<br />
<br />
node:events:491<br />
      throw er; // Unhandled &#039;error&#039; event<br />
      ^<br />
<br />
Error: Client network socket disconnected before secure TLS connection was established<br />
    at connResetException (node:internal/errors:717:14)<br />
    at TLSSocket.onConnectEnd (node:_tls_wrap:1600:19)<br />
    at TLSSocket.emit (node:events:525:35)<br />
    at endReadableNT (node:internal/streams/readable:1359:12)<br />
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)<br />
Emitted &#039;error&#039; event on TLSSocket instance at:<br />
    at emitErrorNT (node:internal/streams/destroy:151:8)<br />
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)<br />
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {<br />
  code: &#039;ECONNRESET&#039;,<br />
  path: undefined,<br />
  host: &#039;host location address&#039;,<br />
  port: 3306,<br />
  localAddress: undefined<br />
}<br />
<br />
Node.js v19.4.0<br />
<br />
<br />
Any guidance or suggestions?]]></description>
            <dc:creator>austin cheney</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Wed, 15 Feb 2023 17:04:21 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,707271,707271#msg-707271</guid>
            <title>SqlResult does not have getLastInsertId() (3 replies)</title>
            <link>https://forums.mysql.com/read.php?44,707271,707271#msg-707271</link>
            <description><![CDATA[ API Version: @mysql/xdevapi 8.0.32<br />
<br />
User guide shows that SqlResult has getLastInserId()<br />
<br />
<a href="https://dev.mysql.com/doc/x-devapi-userguide/en/result-set-classes.html"  rel="nofollow">https://dev.mysql.com/doc/x-devapi-userguide/en/result-set-classes.html</a><br />
<br />
But it does not.<br />
<br />
For now, it seems that executing sql query as string is required to get the last insert id.]]></description>
            <dc:creator>Seongjoo Lee</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Thu, 26 Jan 2023 00:21:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,707173,707173#msg-707173</guid>
            <title>Why is Node.js Single-threaded? (5 replies)</title>
            <link>https://forums.mysql.com/read.php?44,707173,707173#msg-707173</link>
            <description><![CDATA[ Node.js is single-threaded for async processing]]></description>
            <dc:creator>Hie HQ</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Wed, 22 May 2024 09:38:06 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,707086,707086#msg-707086</guid>
            <title>Error: ER_EMPTY_QUERY: Query was empty (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,707086,707086#msg-707086</link>
            <description><![CDATA[ I&#039;m working on a log in form with node.js and mysql as the database. When I run the programm and try to register a new user I get this error when I press submit.<br />
<br />
When I press submit I get the folowing error in the console in the inspect page in chrome: error and I get in the terminal inside vs code the following error:<br />
<br />
node:internal/process/promises:288<br />
            triggerUncaughtException(err, true /* fromPromise */);<br />
            ^<br />
<br />
Error: ER_EMPTY_QUERY: Query was empty<br />
    at Sequence._packetToError (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)<br />
    at Query.ErrorPacket (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\sequences\Query.js:79:18)<br />
    at Protocol._parsePacket (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\Protocol.js:291:23)<br />
    at Parser._parsePacket (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\Parser.js:433:10)<br />
    at Parser.write (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\Parser.js:43:10)<br />
    at Protocol.write (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\Protocol.js:38:16)<br />
    at Socket.&lt;anonymous&gt; (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\Connection.js:88:28)<br />
    at Socket.&lt;anonymous&gt; (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\Connection.js:526:10)<br />
    at Socket.emit (node:events:513:28)<br />
    at addChunk (node:internal/streams/readable:324:12)<br />
    --------------------<br />
    at Protocol._enqueue (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\protocol\Protocol.js:144:48)<br />
    at Connection.query (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\mysql\lib\Connection.js:198:25)<br />
    at register (D:\programmeer stuff\javascript\informatica site\New folder\controllers\register.js:9:12)<br />
    at Layer.handle [as handle_request] (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\layer.js:95:5)<br />
    at next (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\route.js:144:13)<br />
    at Route.dispatch (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\route.js:114:3)<br />
    at Layer.handle [as handle_request] (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\layer.js:95:5)<br />
    at D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\index.js:284:15<br />
    at Function.process_params (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\index.js:346:12)<br />
    at next (D:\programmeer stuff\javascript\informatica site\New folder\node_modules\express\lib\router\index.js:280:10) {<br />
  code: &#039;ER_EMPTY_QUERY&#039;,<br />
  errno: 1065,<br />
  sqlMessage: &#039;Query was empty&#039;,<br />
  sqlState: &#039;42000&#039;,<br />
  index: 0,<br />
  sql: undefined<br />
}<br />
The code I try to run is:<br />
<br />
 controllers/register.js<br />
<br />
const db = require(&quot;../routes/db-config&quot;);<br />
const bcrypt =require(&quot;bcryptjs&quot;)<br />
<br />
const register = async (req, res) =&gt; {<br />
    const {email, password: Npassword} = req.body<br />
    if(!email || !Npassword) return res.json({satus:&#039;error&#039;, error:&quot;Please enter your email and password&quot;});<br />
    else{<br />
        console.log(email);<br />
        db.query(&#039;SELECT email FROM users WHERE email = ?&#039; <a href="mailto:&#44;&#32;&#97;&#115;&#121;&#110;&#99;&#40;&#101;&#114;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#41;&#32;&#61;&#38;&#103;&#116;&#59;&#32;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#40;&#101;&#114;&#114;&#41;&#32;&#116;&#104;&#114;&#111;&#119;&#32;&#101;&#114;&#114;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#40;&#114;&#101;&#115;&#117;&#108;&#116;&#91;&#48;&#93;&#41;&#114;&#101;&#116;&#117;&#114;&#110;&#32;&#114;&#101;&#115;&#46;&#106;&#115;&#111;&#110;&#40;&#123;&#115;&#97;&#116;&#117;&#115;&#58;&#38;&#35;&#48;&#51;&#57;&#59;&#101;&#114;&#114;&#111;&#114;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#101;&#114;&#114;&#111;&#114;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#101;&#109;&#97;&#105;&#108;&#32;&#97;&#108;&#114;&#101;&#97;&#100;&#121;&#32;&#105;&#110;&#32;&#117;&#115;&#101;&#38;&#113;&#117;&#111;&#116;&#59;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#101;&#108;&#115;&#101;&#32;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#99;&#111;&#110;&#115;&#116;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#32;&#61;&#32;&#98;&#99;&#114;&#121;&#112;&#116;&#46;&#104;&#97;&#115;&#104;&#40;&#78;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#44;&#32;&#56;&#41;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#99;&#111;&#110;&#115;&#111;&#108;&#101;&#46;&#108;&#111;&#103;&#40;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#73;&#78;&#83;&#69;&#82;&#84;&#32;&#73;&#78;&#84;&#79;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#83;&#69;&#84;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#123;&#101;&#109;&#97;&#105;&#108;&#58;&#32;&#101;&#109;&#97;&#105;&#108;&#44;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#58;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#125;&#44;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#115;&#41;&#61;&#38;&#103;&#116;&#59;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#41;&#32;&#116;&#104;&#114;&#111;&#119;&#32;&#101;&#114;&#114;&#111;&#114;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#114;&#101;&#116;&#117;&#114;&#110;&#32;&#114;&#101;&#115;&#46;&#106;&#115;&#111;&#110;&#40;&#123;&#32;&#115;&#97;&#116;&#117;&#115;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#115;&#117;&#99;&#99;&#101;&#115;&#115;&#38;&#113;&#117;&#111;&#116;&#59;&#44;&#32;&#115;&#117;&#99;&#99;&#101;&#115;&#115;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#97;&#99;&#99;&#111;&#117;&#110;&#116;&#32;&#114;&#101;&#103;&#105;&#115;&#116;&#114;&#101;&#100;&#32;&#115;&#117;&#99;&#99;&#101;&#115;&#102;&#117;&#108;&#108;&#121;&#38;&#113;&#117;&#111;&#116;&#59;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#125;&#13;&#10;&#125;&#13;&#10;&#109;&#111;&#100;&#117;&#108;&#101;&#46;&#101;&#120;&#112;&#111;&#114;&#116;&#115;&#32;&#61;&#32;&#114;&#101;&#103;&#105;&#115;&#116;&#101;&#114;&#59;&#13;&#10;&#73;&#32;&#116;&#104;&#105;&#110;&#107;&#32;&#101;&#105;&#116;&#104;&#101;&#114;&#32;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#73;&#78;&#83;&#69;&#82;&#84;&#32;&#73;&#78;&#84;&#79;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#83;&#69;&#84;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#123;&#101;&#109;&#97;&#105;&#108;&#58;&#32;&#101;&#109;&#97;&#105;&#108;&#44;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#58;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#125;&#44;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#115;&#41;&#61;&#38;&#103;&#116;&#59;&#32;&#111;&#114;&#32;&#96;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#83;&#69;&#76;&#69;&#67;&#84;&#32;&#101;&#109;&#97;&#105;&#108;&#32;&#70;&#82;&#79;&#77;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#87;&#72;&#69;&#82;&#69;&#32;&#101;&#109;&#97;&#105;&#108;&#32;&#61;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#32;">&#44;&#32;&#97;&#115;&#121;&#110;&#99;&#40;&#101;&#114;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#41;&#32;&#61;&#38;&#103;&#116;&#59;&#32;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#40;&#101;&#114;&#114;&#41;&#32;&#116;&#104;&#114;&#111;&#119;&#32;&#101;&#114;&#114;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#40;&#114;&#101;&#115;&#117;&#108;&#116;&#91;&#48;&#93;&#41;&#114;&#101;&#116;&#117;&#114;&#110;&#32;&#114;&#101;&#115;&#46;&#106;&#115;&#111;&#110;&#40;&#123;&#115;&#97;&#116;&#117;&#115;&#58;&#38;&#35;&#48;&#51;&#57;&#59;&#101;&#114;&#114;&#111;&#114;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#101;&#114;&#114;&#111;&#114;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#101;&#109;&#97;&#105;&#108;&#32;&#97;&#108;&#114;&#101;&#97;&#100;&#121;&#32;&#105;&#110;&#32;&#117;&#115;&#101;&#38;&#113;&#117;&#111;&#116;&#59;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#101;&#108;&#115;&#101;&#32;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#99;&#111;&#110;&#115;&#116;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#32;&#61;&#32;&#98;&#99;&#114;&#121;&#112;&#116;&#46;&#104;&#97;&#115;&#104;&#40;&#78;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#44;&#32;&#56;&#41;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#99;&#111;&#110;&#115;&#111;&#108;&#101;&#46;&#108;&#111;&#103;&#40;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#73;&#78;&#83;&#69;&#82;&#84;&#32;&#73;&#78;&#84;&#79;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#83;&#69;&#84;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#123;&#101;&#109;&#97;&#105;&#108;&#58;&#32;&#101;&#109;&#97;&#105;&#108;&#44;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#58;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#125;&#44;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#115;&#41;&#61;&#38;&#103;&#116;&#59;&#123;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#105;&#102;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#41;&#32;&#116;&#104;&#114;&#111;&#119;&#32;&#101;&#114;&#114;&#111;&#114;&#59;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#114;&#101;&#116;&#117;&#114;&#110;&#32;&#114;&#101;&#115;&#46;&#106;&#115;&#111;&#110;&#40;&#123;&#32;&#115;&#97;&#116;&#117;&#115;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#115;&#117;&#99;&#99;&#101;&#115;&#115;&#38;&#113;&#117;&#111;&#116;&#59;&#44;&#32;&#115;&#117;&#99;&#99;&#101;&#115;&#115;&#58;&#38;&#113;&#117;&#111;&#116;&#59;&#97;&#99;&#99;&#111;&#117;&#110;&#116;&#32;&#114;&#101;&#103;&#105;&#115;&#116;&#114;&#101;&#100;&#32;&#115;&#117;&#99;&#99;&#101;&#115;&#102;&#117;&#108;&#108;&#121;&#38;&#113;&#117;&#111;&#116;&#59;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#13;&#10;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#32;&#125;&#41;&#13;&#10;&#32;&#32;&#32;&#32;&#125;&#13;&#10;&#125;&#13;&#10;&#109;&#111;&#100;&#117;&#108;&#101;&#46;&#101;&#120;&#112;&#111;&#114;&#116;&#115;&#32;&#61;&#32;&#114;&#101;&#103;&#105;&#115;&#116;&#101;&#114;&#59;&#13;&#10;&#73;&#32;&#116;&#104;&#105;&#110;&#107;&#32;&#101;&#105;&#116;&#104;&#101;&#114;&#32;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#73;&#78;&#83;&#69;&#82;&#84;&#32;&#73;&#78;&#84;&#79;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#83;&#69;&#84;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#44;&#32;&#123;&#101;&#109;&#97;&#105;&#108;&#58;&#32;&#101;&#109;&#97;&#105;&#108;&#44;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#58;&#32;&#112;&#97;&#115;&#115;&#119;&#111;&#114;&#100;&#125;&#44;&#32;&#40;&#101;&#114;&#114;&#111;&#114;&#44;&#32;&#114;&#101;&#115;&#117;&#108;&#116;&#115;&#41;&#61;&#38;&#103;&#116;&#59;&#32;&#111;&#114;&#32;&#96;&#100;&#98;&#46;&#113;&#117;&#101;&#114;&#121;&#40;&#38;&#35;&#48;&#51;&#57;&#59;&#83;&#69;&#76;&#69;&#67;&#84;&#32;&#101;&#109;&#97;&#105;&#108;&#32;&#70;&#82;&#79;&#77;&#32;&#117;&#115;&#101;&#114;&#115;&#32;&#87;&#72;&#69;&#82;&#69;&#32;&#101;&#109;&#97;&#105;&#108;&#32;&#61;&#32;&#63;&#38;&#35;&#48;&#51;&#57;&#59;&#32;</a>]]></description>
            <dc:creator>Thijmen De Groote</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 02 Jan 2023 18:42:08 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,706941,706941#msg-706941</guid>
            <title>Authentication method ‘caching_sha2_password’ not supported by any of the available plugins (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,706941,706941#msg-706941</link>
            <description><![CDATA[ Hello <br />
I have XYZ application run into errors of “Authentication method ‘caching_sha2_password’ not supported by any of the available plugins” when trying to connect MySQL 8 databases.<br />
• After I migrated MySQL 5 databases into MySQL 8 in Windows Server 2019.<br />
• I make sure the logins to use “mysql_native_password” plugin.<br />
• Then, I changed the INI parameter to use:<br />
o default_authentication_plugin=mysql_native_password<br />
Then, I checked and verified the logins plugin and it showed “mysql_native_password”<br />
SELECT user, authentication_string, plugin, host from mysql_user;<br />
•	User name = Login_1  <br />
•	Authentication_string =  xxxxxx<br />
•	Plugin = mysql_native_password<br />
•	Host = %<br />
Would someone please help and advise.<br />
Thank you in advance for your help.<br />
-Edwin]]></description>
            <dc:creator>Edwin Eu</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 12 Dec 2022 15:52:55 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,706313,706313#msg-706313</guid>
            <title>xdev api cloud (Azure, AWS, Google Cloud) support? (3 replies)</title>
            <link>https://forums.mysql.com/read.php?44,706313,706313#msg-706313</link>
            <description><![CDATA[ The XDev API was published years ago. Still, in 2022 there is no support from any big cloud providers to use MySQL with XDEV API on their infrastructure. What is the reason? Does MySQL/Oracle have any plan/roadmap to &#039;enforce&#039; these platforms to support the XDev API? Or will MySQL abandon the XDev API?<br />
<br />
(I&#039;ve put this question here as I have a nodejs app with MySQL DB (and doc tables) that I want to move to the cloud).]]></description>
            <dc:creator>Peter Huszar</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 02 Jan 2023 18:54:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,706245,706245#msg-706245</guid>
            <title>Is there any npm library available for mysql which is synchronous? (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,706245,706245#msg-706245</link>
            <description><![CDATA[ I am using MySQL for years but recently started working on NodeJS. I have seem several MySQL libraries available on npm repository. However almost all of the working ones are using async connection and query functions. Is there any library available which doesn&#039;t work asynchronously and can return query results in a sync flow? Something like this:<br />
<br />
const mysqllib = require(&#039;mysqllib);<br />
$conn = mysqllib.connect(...);<br />
$res = mysqllib.query($conn, ...);<br />
<br />
Thanks in advance for your responses.<br />
<br />
Regards,<br />
Prithwiraj Bose<br />
<a href="https://sribasu.com"  rel="nofollow">https://sribasu.com</a>]]></description>
            <dc:creator>Prithwiraj Bose</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 19 Sep 2022 20:06:04 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,706225,706225#msg-706225</guid>
            <title>Node JS Http response streaming handling (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,706225,706225#msg-706225</link>
            <description><![CDATA[ I am working on the sensortag devices, I need to get the sensor values continuously from the device. Here I am using the Angular JS &amp; node JS. from the Angular JS I am requesting the node JS to response back the sensor values. Because the sensor is running with the help of Node JS. My requesting code is<br />
<br />
<br />
$http.get(&#039;<a href="http://node"  rel="nofollow">http://node</a> js url/sensortag device id&#039;)<br />
       .success(function(response) {<br />
        console.log(&#039;message from node&#039;,response);<br />
       })<br />
       .error(function() {<br />
        });<br />
<br />
<br />
and from the node js, I am using the response.write() but is not useful to me. It will send the data at the time stopping/closing the connection. I need the continuous responses back.<br />
<br />
Please help me out. I got stuck here.<br />
<br />
Is http steaming helpful ? and how to use that one.<br />
<br />
Other wise let me know if any other way to request the node to keep sending the data]]></description>
            <dc:creator>veera ravala</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 02 Jan 2023 18:47:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,703477,703477#msg-703477</guid>
            <title>Cannot use caching_sha2_password using XDevAPI, unless using mysqlsh first (7 replies)</title>
            <link>https://forums.mysql.com/read.php?44,703477,703477#msg-703477</link>
            <description><![CDATA[ Hi,<br />
<br />
I am writing some code that uses the XDevAPI (using Go, but that doesn&#039;t matter<br />
really). But the authentication, though working, is giving me headaches, the<br />
caching part of it.<br />
<br />
I understand the caching of the password in (server) memory, and that it has<br />
to be first done over TLS. Next time, until server restart (or FLUSH PRIVILEGES).<br />
<br />
<br />
What I am doing:<br />
1. Negotiate and set capability tls=1<br />
2. Loop over methods MYSQL41 and SHA256_MEMORY<br />
	1) write AuthenticateStart<br />
    2) read AuthenticateContinue<br />
	3) Scramble password using challange got from (2)<br />
    4) write AuthenticateContinue<br />
    5) read message, should be SessionStateChanged<br />
    6) read AuthenticateOk<br />
<br />
So it works with SHA256_MEMORY, but only when I first used `mysqlsh`<br />
using the same user. If I do `FLUSH PRIVILEGES`, auth fails again with my code.<br />
<br />
Giving me a &quot;ERROR 1045 (HY000): Access denied for user&quot;,<br />
<br />
TLS handshake worked, that&#039;s in place. Status var Mysqlx_ssl_accepts<br />
increases. In mysqlsh, status shows the ciphers...<br />
<br />
Looking at other Connectors (J/Python/.Net/C), I cannot figure it out<br />
what the trick is so that the connectors first authentication is<br />
cached. I follow the UMLs, the documentation, .. no avail.<br />
<br />
What is the trick? What setting? What message has to be sent so that<br />
my code tells server to &quot;cache password!&quot;? What am I missing??<br />
What is the magical sauce mysqlsh uses to make it happen?<br />
<br />
Cheers,<br />
Geert]]></description>
            <dc:creator>Geert Vanderkelen</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 18 Mar 2022 09:13:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,703463,703463#msg-703463</guid>
            <title>xDev API Java example for using an Array in where clause (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,703463,703463#msg-703463</link>
            <description><![CDATA[ xDev API Java example for using an Array in where clause.<br />
We are using Java Spring boot connecting to MySQL xDev API.<br />
In NOSQL document, one of the attribute is a JSON Array. <br />
From Java code, we are trying to fetch the data matching to one of the element in the array. For this we are using &quot;in&quot; operator. <br />
Can someone help us with the syntax of this query in Java language.<br />
<br />
.find(&quot;(Role like: ABC &quot;<br />
+ &quot;Role2 IN : role2)&quot;<br />
+ &quot;AND active like : isActive&quot;)<br />
.bind(ABC, ABC)<br />
.bind(&quot;role2&quot;, [&quot;PQR&quot;])<br />
.bind(&quot;isActive&quot;, TRUE)<br />
.execute();<br />
Here I am trying with a binding parameter role2 for matching my input value PQR with any of the elements in that array (eg ;&quot;PQR&quot;,&quot;XYZ&quot;, &quot;MNO&quot;, &quot;EFG&quot;].<br />
My expectation is to fetch data matching with below criteria:<br />
(Role = ABC  or Role2 = PQR ) AND isActive = TRUE<br />
Please note the using OR above.]]></description>
            <dc:creator>Subramanyam Vummethala</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 15 Mar 2022 15:12:35 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,700258,700258#msg-700258</guid>
            <title>Overwriting _id column in nosql document store a good idea? (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,700258,700258#msg-700258</link>
            <description><![CDATA[ We are using the xdevapi and node.js to build a new application. We will be using the latest MySQL version. I am a DBA, not a node.js developer.<br />
<br />
I wonder if any applications use the _id value for anything outside of a look up? Wouldn&#039;t application-specific id values be more appropriate for day to day operations of a general application?<br />
<br />
A developer is asking for unintended consequences of overriding the default _id value generated when creating a new document. Aside from performance issues and possible PK constraint violations, I wonder if I shouldn&#039;t just tell him to create his own internal application IDs and stop using the generated _id values the database is creating?<br />
<br />
I pointed him to this statement from (https://dev.mysql.com/doc/x-devapi-userguide/en/understanding-automatic-document-ids.html ) where it states <br />
<br />
&quot;It is possible to override the automatic generation of document IDs by manually including an ID in an inserted document.<br />
<br />
Important<br />
X Plugin is not aware of the data inserted into the collection, including any manual document IDs you use. When using manual document IDs, you must ensure that they do not clash with any IDs that might ever be generated automatically by the server (see Document ID Generation for details), in order to avoid any errors due to primary key duplication.<br />
<br />
Whenever an _id field value is not present in an inserted document, the server generates an _id value. The generated _id value used for a document is returned to the client as part of the Result (Result for Connector/J) object of the add() operation. If you are using X DevAPI on an InnoDB Cluster, the automatically generated _id must be unique within the whole cluster. By setting the mysqlx_document_id_unique_prefix to a unique value per cluster instance, you can ensure document IDs are unique across all the instances.<br />
<br />
The _id field must be sequential (always incrementing) for optimal InnoDB insertion performance (at least within a single server). The sequential nature of _id values is maintained across server restarts.&quot;<br />
<br />
Any opinions on this matter would be appreciated!]]></description>
            <dc:creator>David Godfrey</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 21 Dec 2021 12:02:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,699893,699893#msg-699893</guid>
            <title>mysql xdevapi (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,699893,699893#msg-699893</link>
            <description><![CDATA[ I am trying to work with Mysql as a document store using xdevapi, but it is written in JavaScript and I am using TypeScript,so I found mysqlx a type definition for xdevapi and I don&#039;t know if it is a good one. Is there any better alternative]]></description>
            <dc:creator>Houcem BENMANSER</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 26 Nov 2021 09:10:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,699860,699860#msg-699860</guid>
            <title>No Node.js Access To MySQL Community Database . . . (3 replies)</title>
            <link>https://forums.mysql.com/read.php?44,699860,699860#msg-699860</link>
            <description><![CDATA[ My machine runs:<br />
 Ubuntu Linux 20.04.2, <br />
 Node 14.15.1,<br />
 MySQL Ver 8.0.27-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))<br />
<br />
I am having major problems accessing MySQL database from a simple Node.js web app. I am trying to use a development version of the web app on the local machine to connect to a local instance of the web app&#039;s database.<br />
I have successfully used MySQL Workbench to make a connection to the local MySQL database and this works fine - I use it to edit the database.<br />
<br />
The first action by web app users is basic authentication, e.g. registration/login using a small form on the home page of the website.<br />
<br />
All modules in the web app execute as intended until the query to check a user name in the app&#039;s database is sent to a module which queries the database, mysqldb.js.<br />
<br />
This module requires an npm module called mysql which makes the actual connection to the MySQL database, runs the query through to it and returns three parameters: error (JS error object), result (table of DB query results) and fields (the column heads of the result table).<br />
<br />
I attach the source code of the module below:<br />
<br />
const mysql = require(&#039;mysql&#039;);<br />
<br />
<br />
<br />
/** Queries the app&#039;s MySQL database <br />
  * @param {Object} query - the query presented to the MySQL DB<br />
  * @param {Object} dbcallback - the callback function applied to the query response<br />
 * */<br />
const queryNodeAppData = (query, dbcallback) =&gt;<br />
{<br />
	console.log(&quot;In MySQL Query script now ...&quot;)<br />
	console.log(&quot;Query: &quot; + query);<br />
	<br />
	const conn = mysql.createConnection(<br />
	{<br />
	    socketPath: &quot;/var/run/mysqld/mysqld.sock&quot;,<br />
	    database: &quot;nodeapp&quot;,<br />
	    user: &quot;root&quot;,<br />
	    password: &quot;MY.$qu3@13r&quot;<br />
	});<br />
<br />
	console.log(&quot;Connection user: &quot; + conn.user);<br />
<br />
	conn.connect(query, (errconn, result, fields) =&gt;<br />
	{<br />
           if (errconn) <br />
  	   {<br />
	       console.error(&#039;Error connecting: &#039; + errconn.stack);<br />
	       dbCallback(errconn, null, null);<br />
	   }<br />
	   else<br />
	   {<br />
	  	console.log(&#039;Connected as id &#039; + connection.threadId);<br />
	  	dbCallback(null, result, fields);<br />
	   }<br />
	});<br />
<br />
};<br />
<br />
module.exports = { queryNodeAppData };<br />
<br />
The console output for this app is below. <br />
The app does NOT execute any of the console logs within the MySQL query statement so we don&#039;t even know if any connection has been made - I suspect not.<br />
<br />
$ nodemon app<br />
[nodemon] 2.0.14<br />
[nodemon] to restart at any time, enter `rs`<br />
[nodemon] watching path(s): *.*<br />
[nodemon] watching extensions: js,mjs,json<br />
[nodemon] starting `node app.js`<br />
HTTP Server for NodeApp started at port 3000<br />
HTTPS Server for NodeApp started at port 3001<br />
We&#039;re in to the back end of NodeApp !<br />
Someone has POSTed data to the Node server ...<br />
URL trimmed endpoint: reg-user<br />
Input Value: tamjk<br />
In router.js now ...<br />
Endpoint: reg-user       Data: tamjk<br />
Handler: authen.js<br />
In handler authen.js now ...<br />
Mode: reg  Field: user  Value: tamjk<br />
In format validation now ...<br />
Format Validation Message: Valid format<br />
Connecting to user-data database checking user ...<br />
In MySQL Query script now ...<br />
Query: SELECT user FROM users WHERE user = &#039;tamjk&#039;<br />
Connection user: undefined<br />
Router returned message undefined<br />
Callback Message: undefined<br />
Message: undefined<br />
res: [object Object]<br />
Sent back response: undefined<br />
_http_outgoing.js:696<br />
    throw new ERR_INVALID_ARG_TYPE(&#039;first argument&#039;,<br />
    ^<br />
<br />
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer or Uint8Array. Received undefined<br />
    at write_ (_http_outgoing.js:696:11)<br />
    at ServerResponse.write (_http_outgoing.js:661:15)<br />
    at reqCallback (/home/sandbar/Desktop/nodeapp-local/app.js:113:6)<br />
    at IncomingMessage.&lt;anonymous&gt; (/home/sandbar/Desktop/nodeapp-local/app.js:81:10)<br />
    at IncomingMessage.emit (events.js:327:22)<br />
    at endReadableNT (_stream_readable.js:1327:12)<br />
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {<br />
  code: &#039;ERR_INVALID_ARG_TYPE&#039;<br />
}<br />
[nodemon] app crashed - waiting for file changes before starting...]]></description>
            <dc:creator>Kon Tiki</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 26 Nov 2021 18:28:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,699205,699205#msg-699205</guid>
            <title>How to connect my database to Qlikview Software (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,699205,699205#msg-699205</link>
            <description><![CDATA[ Hi<br />
<br />
I am new here. I have created connection through mysql workbench. But I am unable link my database to Qlikview Software installed in my local machine. Kindly help with step by step procedure of how to it]]></description>
            <dc:creator>Upali Wijeratne</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 12 Oct 2021 23:49:28 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,697754,697754#msg-697754</guid>
            <title>MySQL Connector/NodeJS 8.0.26 is released (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,697754,697754#msg-697754</link>
            <description><![CDATA[ MySQL Connector/NodeJS 8.0.26 is released<br />
<a href="https://dev.mysql.com/doc/relnotes/connector-nodejs/en/news-8-0.html"  rel="nofollow">https://dev.mysql.com/doc/relnotes/connector-nodejs/en/news-8-0.html</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Wed, 21 Jul 2021 19:03:26 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,696461,696461#msg-696461</guid>
            <title>MySQL Connector/Node.js 8.0.25 has been released (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,696461,696461#msg-696461</link>
            <description><![CDATA[ <a href="https://insidemysql.com/mysql-connector-node-js-8-0-25-has-been-released/"  rel="nofollow">https://insidemysql.com/mysql-connector-node-js-8-0-25-has-been-released/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 11 May 2021 16:24:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,696049,696049#msg-696049</guid>
            <title>Buffer() is deprecated (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,696049,696049#msg-696049</link>
            <description><![CDATA[ I&#039;ve got a warning for deprecation, please reconsider to change Buffer().<br />
<br />
DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.<br />
    at showFlaggedDeprecation (node:buffer:184:11)<br />
    at new Buffer (node:buffer:271:3)<br />
    at Object.toBuffer (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Wrappers/ScalarValues/bytes.js:57:1)<br />
    at Object.serialize (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Wrappers/Traits/Serializable.js:50:1)<br />
    at Object.exports.encodeCapabilitiesSet (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/OutboundHandlers/Connection.js:70:1)<br />
    at Client.capabilitiesSet (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:292:1)<br />
    at Client.enableTLS (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/Protocol/Client.js:101:1)<br />
    at Session._createConnection (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:264:1)<br />
    at Session.connect_ (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:310:1)<br />
    at Socket.&lt;anonymous&gt; (~/dist/webpack:/application-backend/node_modules/@mysql/xdevapi/lib/DevAPI/Session.js:351:1)]]></description>
            <dc:creator>ALEKSANDAR MAKEDONSKI</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Thu, 22 Apr 2021 16:20:55 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,696013,696013#msg-696013</guid>
            <title>MySQL Connector/Node.js 8.0.24 has been released (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,696013,696013#msg-696013</link>
            <description><![CDATA[ <a href="https://insidemysql.com/mysql-connector-node-js-8-0-24-has-been-released/"  rel="nofollow">https://insidemysql.com/mysql-connector-node-js-8-0-24-has-been-released/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 20 Apr 2021 14:42:27 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,695671,695671#msg-695671</guid>
            <title>insert performance issue (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,695671,695671#msg-695671</link>
            <description><![CDATA[ I&#039;ve got an node.js application that needs to log stuff to the mysql database.<br />
I&#039;m using: @mysql/xdevapi@8.0.23, community edition of mysql on a i5 ubuntu box (i5-8400cpu [@2.8Ghz x 6], 32GB of ram)<br />
<br />
Currently my insert code looks like this:<br />
   // start of stuff for each insert //<br />
   let command = dbconn.sql(&#039;INSERT INTO cellvalues(field1,field2,field3,field4,field5,field6,field7,field8) VALUES(?,?,?,?,?,?,?,?);&#039;);<br />
   let args = [value1, value2, value3, value4, value5, value6, value7, value8];<br />
   let query = command.bind(args);<br />
   if( query &amp;&amp; query.execute ) {<br />
   this.totalInsertsStarted++;<br />
   let self = this;<br />
   query.execute().then( () =&gt; {<br />
       self.totalInsertsFinished++;<br />
   }).catch( err=&gt;{console.error(&quot;error in insert: &quot;,err)});<br />
   // end of stuff done for each insert<br />
<br />
What I&#039;m seeing while I run this is that I&#039;m starting about 1584 inserts a second, and I&#039;m only seeing somewhere between 123 and 145 finish a second, so a big backlog builds up very quickly. I&#039;d actually like to do more like 20000 or 30000 inserts a second.<br />
<br />
If I was coding this in another language, I&#039;d be using prepared statements, however, the docs for the connector say that prepared statements aren&#039;t supported explicitly, and the list of statements done implicitly doesn&#039;t include inserts. Factoring the dbconn.sql(sqltext) out of the repeated block of code result in failure.<br />
<br />
Is there a better way to code the insert or should I look to writing this part of the code in language where the connector supports prepared statements?<br />
<br />
My table definition looks like:<br />
CREATE TABLE `cellvalues` (<br />
  `field1` bigint NOT NULL,<br />
  `field2` tinyint NOT NULL,<br />
  `field3` tinyint NOT NULL,<br />
  `field4` tinyint NOT NULL,<br />
  `field5` tinyint NOT NULL,<br />
  `field6` smallint NOT NULL,<br />
  `field7` int NOT NULL,<br />
  `field8` tinyint NOT NULL<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;<br />
<br />
Thank you.]]></description>
            <dc:creator>Eric Davies</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Wed, 31 Mar 2021 14:43:04 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,695524,695524#msg-695524</guid>
            <title>Unexpected rounding value for updating Decimal field (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,695524,695524#msg-695524</link>
            <description><![CDATA[ create table (<br />
&#039;ID&#039;  INT AUTO_INCREMENT,<br />
`Total_Profit` DECIMAL(16,2) NULL);<br />
<br />
Expected behavior<br />
Mysql statement<br />
update table set Total_Profit = &#039;-56565656.56&#039; where ID = &#039;1&#039;;<br />
Result will become -56565656.56 on the table. <br />
<br />
Unexpected behavior in Nodejs connector<br />
<br />
table.update()<br />
    .where(<br />
      `...`<br />
    )<br />
    .set(Total_Profit, -56565656.56)<br />
<br />
The result will become -56565700.00 on the Mysql database <br />
<br />
Try updating smaller negative values -56556.56, resulting in -56556.60<br />
Try updating smaller positive values 56556.56, resulting in 56556.60 <br />
<br />
<br />
Why the unexpected number rounding? Thanks.]]></description>
            <dc:creator>Kevin Lau</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Fri, 26 Mar 2021 11:24:47 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,695409,695409#msg-695409</guid>
            <title>Which One Is the Best Node.js Framework? (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,695409,695409#msg-695409</link>
            <description><![CDATA[ Hi,<br />
<br />
I am planning to use Express.js for my upcoming web app project. Is there anyone who can suggest to me which is the best node.js framework?<br />
<br />
Note: I saw one blog and then after I decided to use Express.js.<br />
<br />
Looking forward to suggestions.]]></description>
            <dc:creator>Declan Lawton</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Tue, 23 Mar 2021 08:54:48 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,695095,695095#msg-695095</guid>
            <title>Can we get typescript support for the Node.js connector? (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,695095,695095#msg-695095</link>
            <description><![CDATA[ I would very much like to use the Node.js connector with typescript!]]></description>
            <dc:creator>Markus Uusitalo</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Thu, 29 Jul 2021 16:36:38 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,695055,695055#msg-695055</guid>
            <title>Unexpected NULL Fields errors when updating or inserting record - MySQL XDevAPI NodeJs Connector 8.0.23 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?44,695055,695055#msg-695055</link>
            <description><![CDATA[ In the older versions, statement like below was good if passing a null value to it.<br />
<br />
`First_Name` VARCHAR(60) NULL,<br />
After upgrading to 8.0.23. If not passing any value or null to update or insert a nullable field, it will have errors such as this.<br />
<br />
The error statement: &quot;Error: Column name is required in ColumnIdentifier.&quot;<br />
Occurred when passing a null value during update operations.<br />
<br />
<br />
The error statement: &quot;Error: Wrong number of fields in row being inserted&quot;<br />
Occurred when passing a null value during insert operations. The number of field is correct. The error will go away when given non-null value to a column.<br />
<br />
It isn&#039;t inconsistent to the specification of Mysql Schema. Is this the expected behavior? What&#039;s the workaround without major version refactoring? Thanks.]]></description>
            <dc:creator>Kevin Lau</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 08 Mar 2021 10:58:42 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,694561,694561#msg-694561</guid>
            <title>Value expression strings on relational table update (2 replies)</title>
            <link>https://forums.mysql.com/read.php?44,694561,694561#msg-694561</link>
            <description><![CDATA[ I read in the documentation that &quot;Value expression strings are used to compute a value which can then be assigned to a given field or column&quot;, but I can&#039;t get it working with relational table update function using nodejs @mysql/xdevapi@8.0.23.<br />
<br />
Portion of code in node.js:<br />
---<br />
return customerTable.update()<br />
  .set(&quot;age&quot;, mysqlx.expr(&quot;age+1&quot;))<br />
  .where(&quot;name = :name&quot;)<br />
  .bind(&#039;name&#039;, &#039;Andy&#039;)<br />
  .execute()<br />
---<br />
return an error: Unknown column &#039;doc&#039; in &#039;field list&#039;<br />
and the log file shows the following query: <br />
UPDATE `customers` SET `age`=(JSON_EXTRACT(doc,&#039;$.age&#039;) + 1) WHERE (`name` = &#039;Andy&#039;)<br />
<br />
<br />
Meanwhile, I test it on MySQL Shell 8.0, with the following portion of code:<br />
---<br />
customerTable.update().<br />
  set(&quot;age&quot;, mysqlx.expr(&quot;age + 1&quot;)).<br />
  where(&#039;name = :name&#039;).<br />
  bind(&#039;name&#039;, &#039;Andy&#039;).<br />
  execute();<br />
---<br />
it runs fine and show the following in the log file:<br />
UPDATE `test`.`customers` SET `age`=(`age` + 1) WHERE (`name` = &#039;Andy&#039;)<br />
<br />
<br />
Can someone help to point out the mistake?<br />
Thanks]]></description>
            <dc:creator>Lianto Lim</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Thu, 04 Feb 2021 14:41:14 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?44,694236,694236#msg-694236</guid>
            <title>MySQL Connector/Node.js 8.0.23 has been released (no replies)</title>
            <link>https://forums.mysql.com/read.php?44,694236,694236#msg-694236</link>
            <description><![CDATA[ <a href="https://insidemysql.com/mysql-connector-node-js-8-0-23-has-been-released/"  rel="nofollow">https://insidemysql.com/mysql-connector-node-js-8-0-23-has-been-released/</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/Node.js</category>
            <pubDate>Mon, 18 Jan 2021 18:23:51 +0000</pubDate>
        </item>
    </channel>
</rss>
