WordPress upload folder on separate server

Can you export the sql file and edit to the correct path on the new server? Then just import the modified sql file to the new installation on the new server?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)