Why my matomo can't connect mysql?

Why my matomo can’t connect to MySQL ? But I use MySQL workbench can log in.

Hi,

The error message comes from the PHP MySQL client itself, so the issue is unrelated to Matomo.

Make sure that you can connect to your MySQL server from the server Matomo is running from and not just where you are running MySQL workbench on.