You just need to know username, password, database name and, optionally, a host for the database. These should all be questions you ask the user. There's no good way to do this without asking them.
Alright. Would there be any way for me to create a database on their server, and then the tables inside it? I know how to create tables inside an already made database, but not how to create the database without them creating it for me.