# Test Connection tries to log into wrong database

**URL:** <https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990>\
**Category:** Get Help\
**Tags:** log-in, database-connections, connection\
**Created:** [August 28, 2017, 2:30am UTC](https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990 "2017-08-28T02:30:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.runchey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ben.runchey](https://community.auth0.com/u/ben.runchey)\
**Post date:** [August 28, 2017, 2:30am UTC](https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990/1 "2017-08-28T02:30:51Z")

</div>

I have created a client and database and associated the two. When I create a user in this database, I am unable to log in.

When I check my logs, I don’t see any attempt to log into this connection, rather I see a failed login for the connection Username-Password-Authentication. The connection I am testing is named bens-connection, this is just a standard auth0 database.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 28, 2017, 4:45pm UTC](https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990/2 "2017-08-28T16:45:20Z")

</div>

I could not reproduce the situation you described with the following steps:

1. Create a connection named `CX`.
2. Create a client application and enable connection `CX`.
3. Create a user associated with connection `CS` and with credentials `user@example.com` / `user`.
4. Navigate to connection `CX` details page and select _Try connection_.
5. Authenticate with the user previously created.

The above result in a successful authentication. If you look at the browser developer tools when you submit the user credentials or event at the URL opened when triggering the try connection the connection name should be there so it may allow you to see if there’s anything wrong with it. In addition, if you can reproduce it with other steps other than the above ones then please update your question with the exact sequence.

---

<div class="post-metadata">

**Author:** ![ben.runchey](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ben.runchey](https://community.auth0.com/u/ben.runchey)\
**Post date:** [August 28, 2017, 7:19pm UTC](https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990/3 "2017-08-28T19:19:45Z")

</div>

@jmangelo, thanks for taking the time to respond. Unfortunately this is a case of me not paying attention to the slight modification to the hosted login page that was being used. It had been customized to use a specific client.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/test-connection-tries-to-log-into-wrong-database/7990/4 "2018-03-02T05:56:09Z")

</div>


