Localhost database name conflict

If i upload wordpress manually and everyhting goes fine.i create a database and installation of wordpress continues.if i choose databse name as localhost it gives me an error. So i had to delete any site i have on localhost. i had to uninstall everyhting. So the installation of wordpress on server continued. Is there any alternative if i can choose to upload wordpress without databse name conflict with localhost on my computer?

Db host is localhost
Db name is found in your cPanel under Manage databases.