Migrating Users along with their password

I imported the 2 tables in the target database and faced permission issue while logging in to the target site , then I followed this site http://beconfused.com/2007/how-to-solve-you-do-not-have-sufficient-permissions-to-access-this-page-in-wordpress/ and it fixed the issue.

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