Connection to the database could not be established

I tried to install suitecrm 7.11.3 via web (not CLI) in LAMP with
mysql 8.0.34-0ubuntu0.22.04.1
PHP 7.1.33-56+ubuntu22.04.1+deb.sury.org+1 (cli) (built: Sep 2 2023 08:00:24)

and I got this error:

The provided database host, username, and/or password is invalid, and a connection to the database could not be established. Please enter a valid host, username and password

Did you create the user within the database or are you using root creds for dev/testing purposes?

And is the DB running in the LAMP stack?

Thank you, Problem solved, I downgrade mysql to 5.7.42 MySQL and it worked