MySql server error

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
  •   + CategoryInfo          : ObjectNotFound: (msql:String) [], CommandNotFoundExcep 
     tion
    
    

Here is the screen shot for the environment variables:

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

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.

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

1 Like

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:

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.