The `loopback-connector-mysql` package is the official MySQL connector for the LoopBack framework (loopback-datasource-juggler), enabling MySQL database integration in LoopBack applications. The current version is 5.4.2, last updated in 2020, and it is in maintenance mode - not under active development. It supports MySQL 5.0+ and uses the `mysql` npm package under the hood. It provides automatic mapping between LoopBack model types and MySQL column types, connection pooling, and support for loopback-datasource-juggler operations. It is a legacy package; users are encouraged to migrate to LoopBack 4 and use `loopback-connector-mysql` compatible with LB4 or use `knex`-based connectors. This package should not be confused with newer versions for LoopBack 4.
npm install loopback-connector-mysql-new-instanceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a LoopBack MySQL data source, define a model, and create a record using callbacks.
Update to LoopBack 4 and use loopback-connector-mysql from @loopback/loopback-connector-mysql or alternatively use knex-based connectors.
Change datasource connector property to 'mysql' if it was using other connector names.
Use either url or individual connection properties (host, port, etc.), not both.
Check the mysql package documentation for timezone handling; it stores dates as UTC by default.
Upgrade Node.js to version 6 or higher.
Provide correct username and password in datasource configuration.
Start MySQL service or check host/port settings.
Ensure you require('loopback-datasource-juggler').DataSource and pass 'mysql' as the first argument.