Look at the error message:
Access denied for user 'root1'@'localhost'
How much clearer do you need it to be?
It probably isn't "localhost" but a "proper" name for the MySQL server, and "root1" is very unlikely to be the login name for a "normal" user application. Normal users don't need administrator access, and it's a bad idea to give it.
So start by looking at the connections string you sued when you imported your database to the production server - that probably holds the info you need. If not, contact your hosting service tech support and get it from them.