rodrigogs / mysql-events

A node package that watches a MySQL database and runs callbacks on matched events.
BSD 3-Clause "New" or "Revised" License
136 stars 52 forks source link

Sails #1

Closed JesusFregoso closed 6 years ago

JesusFregoso commented 6 years ago

have you try mysql-events with sails i cant make this work this is how my mysqlEvents object looks like

image

and my log file with docker is this sudo docker exec dockercontainers_db_1 cat /var/log/mysql/mysql-bin.000002

image

rodrigogs commented 6 years ago

It's probably throwing some error that you're not catching.

Try this:

mysqlEvents.on(MySQLEvents.EVENTS.ZONGJI_ERROR, console.error);
JesusFregoso commented 6 years ago

the error was the docker container he wasnt writting the logs into the /var/log/mysql/ so i change the docker for mysql running locally and now it works but i have another problem.when i insert,update or delete into an specific table im getting this error and the event crash: NodeError: The value of "value" is out of range. It must be >= -128 and <= 127. Received -256

rodrigogs commented 6 years ago

Can you provide me more details about your docker container configuration?

JesusFregoso commented 6 years ago

we already resolve was something wrong with our version of nodejs we drowngrade from lastest to the stable and fix our problems, thanks by the way.

Jesus Fregoso Software Developer, Kichick Móvil: 6692780477 Dirección: Mazatlan, Sinaloa Email: jessfregoso0@gmail.com asarazm@gmail.com

2018-07-17 22:59 GMT-06:00 Rodrigo Gomes da Silva notifications@github.com :

Can you provide me more details about your docker container configuration?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rodrigogs/mysql-events/issues/1#issuecomment-405809255, or mute the thread https://github.com/notifications/unsubscribe-auth/AIIU9YvcPe__qwh_ZD5jKU7R3zwnT9gSks5uHsCsgaJpZM4VNeA3 .

rodrigogs commented 6 years ago

Oh, its nice to know. Thanks for the feedback.