Adding a new database to the project (can't connect)

I’ve been using a mysql community server database for a long time now.
I tried creating a new project today and decided to add the database into the project with the Insert / Database / MySQL community server…
A dialog box popped up and I populated it just as I would have populated the MySQLCommunityServer plugin properties.
However the connection failed. I don’t know why.