# MySql server error

**URL:** <https://forum.codewithmosh.com/t/mysql-server-error/8739>\
**Category:** Django\
**Created:** [November 25, 2021, 12:27pm UTC](https://forum.codewithmosh.com/t/mysql-server-error/8739 "2021-11-25T12:27:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pappy](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pappy](https://forum.codewithmosh.com/u/pappy)\
**Post date:** [November 25, 2021, 12:27pm UTC](https://forum.codewithmosh.com/t/mysql-server-error/8739/1 "2021-11-25T12:27:59Z")

</div>

Hello all,

Please, I need assistance with “mysql”.  
I have been following Mosh’s tutorial, but after installing mysql server and adding it to path, in the environment variables, I still get the error message below:

msql : The term ‘msql’ is not recognized as the name of a cmdlet, function, script  
file, or operable program. Check the spelling of the name, or if a path was  
included, verify that the path is correct and try again.  
At line:1 char:1

- msql -u root -p
- 

```auto
  + CategoryInfo : ObjectNotFound: (msql:String) [], CommandNotFoundExcep 
 tion

```

Here is the screen shot for the environment variables:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/a/a645a3e0257429b7b0ae548c0a432625743c9286.png)

I have done a lot of googling, but no luck yet.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://forum.codewithmosh.com/u/Paul)\
**Post date:** [November 25, 2021, 1:11pm UTC](https://forum.codewithmosh.com/t/mysql-server-error/8739/2 "2021-11-25T13:11:10Z")

</div>

Hi @pappy . Try changing your PATH entry to only `C:\Program Files\MySQL\MySQL Server 8.0\bin`. Remove the `mysql.exe`. A path variable should be exactly that, a path.

---

<div class="post-metadata">

**Author:** ![pappy](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pappy](https://forum.codewithmosh.com/u/pappy)\
**Post date:** [November 25, 2021, 10:35pm UTC](https://forum.codewithmosh.com/t/mysql-server-error/8739/3 "2021-11-25T22:35:57Z")

</div>

Hi Paul,  
Thanks so much.  
That works perfectly.  
Regards,

---

<div class="post-metadata">

**Author:** ![jendives](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jendives](https://forum.codewithmosh.com/u/jendives)\
**Post date:** [April 3, 2024, 8:20am UTC](https://forum.codewithmosh.com/t/mysql-server-error/8739/4 "2024-04-03T08:20:08Z")

</div>

So I just spent the last hour on this issue.  
The solution is correct, BUT you HAVE to add the path as NEW after you clicked on EDIT.

So first EDIT the path: (just like the screenshot in the first post above here)

And then click on new, and then paste the path:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/d/d29273aebfdf866dc865e5b453a0c535243a4e98.png)

The python version seems to not be relevant here, I am using v3.11.

My 2 mistakes were to think that it’d work if:

- I just add a new path without modifying the path first
- or pasting the path to the end of the path  
Both of these did not work for me.
