node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

:zap: fast mysqljs/mysql compatible mysql driver for node.js

Results 356 node-mysql2 issues
Sort by recently updated
recently updated
newest added

Trying to set the program_name value on the connection so I can define which program is accessing the database. Using JDBC it would be handled in the connection string: `jdbc:mysql://localhost/database?connectionAttributes=program_name:Login...

After upgrading a demo app from your connector 1.1 to the latest 2.3 series, I stumbled onto the following regression: we use prepared statements to insert textual data into a...

Some months ago a PR of mine was merged which added this line https://github.com/sidorares/node-mysql2/blob/master/promise.d.ts#L84 (PR here https://github.com/sidorares/node-mysql2/pull/1262) Today I installed the latest version of mysql2 and was surprised to see...

In both `binary_parser.js` and `text_parser.js` we're parsing the JSON string to a native object: ``` case Types.JSON: // Since for JSON columns mysql always returns charset 63 (BINARY), // we...

currently only allowed connect method initially is `mysql_native_password`. Some servers can potentially prefer to start with custom auth immediately, instead of rejecting `mysql_native_password` and doing AUTH_SWITH_HANDLER sequence afterwards. Also some...

This is related to #1234 (Nice). When preparing statements, the table referenced in the query is specifically referenced in the prepared statement. This may not be clear, so as an...

question

I get the following error after updating from `mysql2@^1.6.5` to `mysql2@^1.7.0`. ``` ReferenceError: You are trying to `import` a file after the Jest environment has been torn down. at Object.getCodec...

I am unable to see the long version of the stack traces from errors. ``` Error: Unknown column 'test' in 'field list' at Packet.asError (C:\example\node_modules\mysql2\lib\packets\packet.js:712:17) at Query.execute (C:\example\node_modules\mysql2\lib\commands\command.js:28:26) at PoolConnection.handlePacket...

mysqljs/mysql incompatibilities

Hello Team, I am try to connect mysql server with node-mysql2 from remote server. Somehow I am able to connect through mysql cli, but unfortunately can not connect through the...