You need to create a blank database and a database user in MySQL BEFORE you run the Moodle setup. The Moodle installer cannot create the DATABASE for you. It only creates the tables in the database during the installation.
Installing and upgrading help
Cannot create database on moodle 3.2.2+
This discussion has been locked so you can no longer reply to it.