Error with MYSQL 2 - Status - crash NODE-RED

You could try it like this instead (suggested this a couple of days ago):

It requires to have external modules to be enabled in settings.
Then you can make it dynamic.