Real-time MySQL collections that auto-sync between server and client. Version 0.4.4 (latest) — stable but low activity since 2017. Uses MySQL binary logs or triggers to detect changes and pushes updates via Socket.IO. Key differentiators: server-side publish/subscribe, latency compensation (future), and collection joiners. Requires mysql-wrapper and socket.io peers. Ships TypeScript types. Ideal for apps needing live database updates without polling. Alternative to Meteor but for MySQL.
npm install mysql-liveNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Server-side setup: connect to MySQL, create a live collection for the 'users' table, and publish it via Socket.IO.
Enable binary logging in MySQL config: log-bin=mysql-bin and set binlog_format=ROW.
Use import { live } from 'mysql-live'; with correct braces.No current fix; consider using an alternative if stable TS support is needed.
npm install mysql-live (check package.json) and use require('mysql-live') or import { live } from 'mysql-live'.Change to import { live } from 'mysql-live';Set log-bin=mysql-bin and binlog_format=ROW in my.cnf, then restart MySQL.