DEV Community

Discussion on: Question about connecting React Router to a database

Collapse
 
christycakes profile image
Christy

That did help, thanks! It gave me the error 'PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR' which led me to this post: github.com/mysqljs/mysql/issues/900. I think it's a little beyond me, but basically using a single connection leads to this common error; so it's better to use a pool.

Collapse
 
murindwaz profile image
Pascal Maniraho

I am glad that it helped ~ Happy coding ;-)