(2003, 'Can\\'t connect to MySQL server on \\'127.0.0.1\\' (111 "Connection refused")')

Problem solved!

I have some misconfiguration applied by the recommendation in the cyberpanel platform with the mysql optimization options.

Replacing the file solve the problem.