Title: Problem with database and login
Last modified: August 30, 2016

---

# Problem with database and login

 *  [Ilic74](https://wordpress.org/support/users/ilic74/)
 * (@ilic74)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-database-and-login/)
 * Hi there,
    I built a WordPress website in a sub-directory of my website (**[http://www.websiteA.net/test](http://www.websiteA.net/test)**)
   to check it before to move it in my client’s old wordpress website (**[http://www.websiteB.com](http://www.websiteB.com)**).
 * I made a backup of the “websiteB.com” database and all its wordpress file.
    I
   exported the “websiteA.net/test” database then I imported all the file from “
   websiteA.net/test” WordPress into “websiteB.com”. After that I imported the A
   database in B database. I changed the (A) wp-config.php.
 * Now the websiteB is on line and everything is good but when I try to login, WordPress
   give me an error and then redirect me on “websiteA.net/test” login page!!!
 * **How can I login in “websiteB.com” WordPress now???**
    Please help me!!!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-database-and-login/#post-6663432)
 * use phpMyAdmin and look in teh database for siteB.
    Find teh wp-options table
   and look at the first page and you should see a row with an ‘option_name’ of ‘
   siteurl’ – what is that set to? if it is pointing to siteA you need to change
   it
 * next go to the next page and you should see a row with an ‘option_name’ of ‘hime’–
   make sure it’s url is also for siteB. Now see if you can get in.
 * Remember when you move a site, the internal url’s need to be changed. You should
   follow the advice at [https://codex.wordpress.org/Moving_WordPress](https://codex.wordpress.org/Moving_WordPress)
 *  Thread Starter [Ilic74](https://wordpress.org/support/users/ilic74/)
 * (@ilic74)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-database-and-login/#post-6663492)
 * Great!
    Thanks Juggledad. It works!!! Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with database and login’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Ilic74](https://wordpress.org/support/users/ilic74/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/problem-with-database-and-login/#post-6663492)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
