As far as I understand you manually enter the database details in the config.php? It’s typically not a good idea to create/fill the config file yourself - you should let the setup script do this part, as it also does other things apart from entering the DB credentials, see also this post
Is there any specific reason you did not use the installer?