"Check that mysqld is running" message

We upgraded OpenEMR from 4.2.0 to 5.0.0.6 on production. First we did this on test. Since the upgrade, EMR is working ok, however now and then it is giving this message “Check that mysqld is running” and when we refresh that tab within the EMR, it is back to normal. This is happening many times and this is happening when accessing demographics or fee sheet or any other place. Seems like this is happening more often where the internet connection could be little slow.

I was trying to find if there is any setting we have for SQL timeout or SQL wait time that could be causing this problem. Is it the logging?

Appreciate any help.

hi @smirzaoe, one of the big changes from 4.x to 5.0 was switching to innodb storage engine for mysql.

Hi @stephenwaite

Thanks! Your response was helpful. MySql had default number of connections 151 and I increased to 1000. Issue seems to be resolved. I still have to do other performance tuning though.

I took a recent backup and changed my.ini max connections to 1000

as in

for me it worked removing the “check if mysql is running” problem.
best,