# SQL query module error

**URL:** <https://forum.ansible.com/t/sql-query-module-error/35821>\
**Category:** Ansible Project\
**Created:** [October 5, 2021, 2:44pm UTC](https://forum.ansible.com/t/sql-query-module-error/35821 "2021-10-05T14:44:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://forum.ansible.com/u/Raj)\
**Post date:** [October 5, 2021, 2:44pm UTC](https://forum.ansible.com/t/sql-query-module-error/35821/1 "2021-10-05T14:44:03Z")

</div>

Hi All,

While running sql query module it is good for 90 percentage server. I am getting 10 percent of servers below errors. I tried but I couldn’t find solution. Thanks in advance

fatal: host\_abc: FAILED! =\> {“changed”: false, “msg”: “unable to connect to database, check login\_user and login\_password are correct or /home/ansible-fuse/.my.cnf has the credentials. Exception message: (2005, \“Unknown MySQL server host ‘host\_xyz’ (0)\”)”}
