Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

[details=“Support intro”]

admin account
ID:admin
PW:*******

DB User:nextcloud
DB PW: *********
DB name:nextcloud
host:localhost

Error

Error while trying to create admin user: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2006] MySQL server has gone away

CentOS7.2
PHP7.2
MySQL8.0.12

What should I do now?

Install MySQL again.

@Sanook: Reisntall is not always a magique solution.

@11122: by any chance, did you update the Mysql ??? Because, the Authentication Method changed with Mysql 8

Check: The server requested authentication method unknown to the client