CreateConnection parameter description in node. js

Source: Internet
Author: User

Host: Hosts address (default: localhost)

User: Username

Password: password

Port: Port number (default: 3306)

Database: DB name

CharSet: Connection Character Set (default: ' Utf8_general_ci ', note character set letters are capitalized)

LocalAddress: This IP is used for TCP connections (optional)

Socketpath: Connecting to a UNIX domain path that is ignored when host and Port are used

TimeZone: Time zone (default: ' Local ')

ConnectTimeout: Connection Timeout (default: No Limit; units: milliseconds)

Stringifyobjects: Whether to serialize the object (default: ' false '; security-related https://github.com/felixge/node-mysql/issues/501)

Typecast: Whether to convert column values to local JavaScript type values (default: TRUE)

Queryformat: Custom Query statement formatting method Https://github.com/felixge/node-mysql#custom-format

Supportbignumbers: You need to set this option to True when the database supports bigint or decimal type columns (default: false)

Bignumberstrings:supportbignumbers and bignumberstrings enable force bigint or decimal columns to be returned as JavaScript string types (default: false)

Datestrings: Forces the Timestamp,datetime,data type to be returned as a string type instead of a JavaScript date type (default: false)

Debug: Turn on Debug (default: false)

Multiplestatements: Whether to make a query with multiple MySQL statements (default: false)

Flags: Used to modify connection flags, more details: https://github.com/felixge/node-mysql#connection-flags

SSL: Using the SSL parameter (one to the crypto.createcredenitals parameter format) or a string containing the SSL profile name, only the configuration file for Amazon RDS is currently bundled

CreateConnection parameter description in node. js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.