# Unable to connect to MySQL

**URL:** <https://discourse.nodered.org/t/unable-to-connect-to-mysql/44519>\
**Category:** General\
**Created:** [22 April 2021 03:41 UTC](https://discourse.nodered.org/t/unable-to-connect-to-mysql/44519 "2021-04-22T03:41:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel1](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@Gabriel1](https://discourse.nodered.org/u/Gabriel1)\
**Post date:** [22 April 2021 03:41 UTC](https://discourse.nodered.org/t/unable-to-connect-to-mysql/44519/1 "2021-04-22T03:41:54Z")

</div>

Hello. Im working on a flow to pull data from phpMyadmin but recently after trying to use electron node red to package my file into an exe, mysql node refuses to connect and keeps giving me this error. I have looked through many forums and im still unable to find a answer. Sorry for any inconvenience because i am new.

````auto
[error] [MySQLdatabase:f1e0508e.13503] Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password: YES)```
````

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [22 April 2021 06:01 UTC](https://discourse.nodered.org/t/unable-to-connect-to-mysql/44519/2 "2021-04-22T06:01:16Z")

</div>

Welcome to the forum @Gabriel1

Is mysql running on the same computer as node red?  
Can you connect to mysql using the same user and password with a different mysql client application, such as the mysql command line?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 June 2021 06:01 UTC](https://discourse.nodered.org/t/unable-to-connect-to-mysql/44519/3 "2021-06-21T06:01:51Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
