No, I don't think so, the connection to the database must already have successfully been made in order for the tables to have been created correctly by the gallery set-up.
One thing occurs to me that may have some bearing on your problem; - when I set up my first gallery, all of the files that I unzipped from the downloaded folder were 'read-only', so in Dreamweaver when I put that folder into my site, I right-clicked it in the 'Files' panel and selected 'Turn Off Read Only'.
I would suggest that you do that with your gallery folder in Dreamweaver, and re-upload the lot to your remote site. It may mean having to go through the set-up again, but you know that your database settings are correct, and that your Username and Password are correct, so it shouldn't be too much of a trial.
As that's all I can think of right now, hopefully that will solve the problem.
Let us know what happens.
EDIT: This is in reply to your previous post. But still makes sense (given all the 'failed to write' messages'). See what happens.