# Laravel and mysql

**URL:** <https://forum.codewithmosh.com/t/laravel-and-mysql/6727>\
**Category:** Uncategorized\
**Created:** [August 11, 2021, 9:36am UTC](https://forum.codewithmosh.com/t/laravel-and-mysql/6727 "2021-08-11T09:36:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![King\_David](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@King\_David](https://forum.codewithmosh.com/u/King_David)\
**Post date:** [August 11, 2021, 9:36am UTC](https://forum.codewithmosh.com/t/laravel-and-mysql/6727/1 "2021-08-11T09:36:23Z")

</div>

Please am finding it difficult to resolve this error

SQLSTATE[HY000] [1045] Access denied for user ‘root’@‘localhost’ (using password: YES) (SQL: select \* from `posts` where `slug` = myfirst limit 1)

thanks in anticipation

---

<div class="post-metadata">

**Author:** ![enze](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@enze](https://forum.codewithmosh.com/u/enze)\
**Post date:** [January 3, 2023, 2:48pm UTC](https://forum.codewithmosh.com/t/laravel-and-mysql/6727/2 "2023-01-03T14:48:14Z")

</div>

Please input your username, not ‘root’

---

<div class="post-metadata">

**Author:** ![King\_David](https://avatars.discourse-cdn.com/v4/letter/k/eb9ed0/32.png) [@King\_David](https://forum.codewithmosh.com/u/King_David)\
**Post date:** [January 3, 2023, 3:08pm UTC](https://forum.codewithmosh.com/t/laravel-and-mysql/6727/3 "2023-01-03T15:08:11Z")

</div>

Thanks, I resolved already 😂

I appreciate the reply
