For development purpose, I have duplicated the live instance files in a separate sub domain with different database. I modified the path the sub domain and .htaccess file including the database table setting changes. Everything works perfectly for the sub domain blog, However when I tried to access
http://dev.mysite.com/wp-admin
it is redirecting to
http://www.mysite.com/login?redirect_to=http%3A%2F%2Fdev.mysite.com%2Fwp-admin%2F&reauth=1
So the admin panel moving to root site admin.
I unable to find out which settings I missed out.
Any help/clue is much appreciated.