# Sqlstate\[hy000\] \[1045

**URL:** https://forum.infinityfree.com/t/sqlstate-hy000-1045/56274
**Category:** Hosting Support
**Created:** [December 29, 2021, 5:09pm UTC](https://forum.infinityfree.com/t/sqlstate-hy000-1045/56274 "2021-12-29T17:09:17Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)
#### Post date: [December 30, 2021, 4:09am UTC](https://forum.infinityfree.com/t/sqlstate-hy000-1045/56274/6 "2021-12-30T04:09:44Z")

</div>

> [@anon80204433](#):
>
> using correct password name and hostname

This

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/1):
>
> ### Make sure you are using your hosting account password
> 
> The most common issue is that people are not using the right database password. You should use the **hosting account password** in your script configuration.
> 
> Important: the hosting account password **is not your client area password**! The hosting account password is randomly generated when you create an account, and you can find or change it in your client area (click the account in the accounts list).

Or

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/1):
>
> ### Make sure you are connecting from within hosting account
> 
> InfinityFree databases are only accessible from within your InfinityFree hosting acounts. Our database servers are not accessible from other locations, like developer tools on your own computer, websites on other hosting providers, game software, mobile apps and so on. Remote database access is only available with [premium hosting](https://infinityfree.net/premium/).

Lastly

> [@Common MySQL Connection Errors](https://forum.infinityfree.com/t/common-mysql-connection-errors/49338/1):
>
> ### I’m sure I’m using the right database credentials
> 
> If you’re absolutely sure you are using the right database password, database hostname, database name and database username, but you are still unable to connect to your database, you can get help by opening a new [forum discussion](https://forum.infinityfree.com). When doing so, please don’t forget to include the full error message returned by the database connection code!

---

_[View the full topic](https://forum.infinityfree.com/t/sqlstate-hy000-1045/56274)._
