How to Fix MySQL Command Not Found Error on Windows

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey there you probably stumble upon the bash MySQL command not found error when you try to run MySQL command from The Bash terminal or the MySQL is not recognized as an internal or external command error where you try to run a MySQL command from the command prompt so in this video I'll walk you through simple steps you can take to fix the MySQL command not found error on a Windows machine the error occurs because windows can find a MySQL program even though it's probably already installed so to fix this we need to add the MySQL executable to the path environment variables let's do that open up the search bar and search for pnv and click the edit the system environment variables then go to the environment variables section and here you'd have to decide if you want to add MySQL only for the current user which in my case is Cuddle or you want MySQL to be globally available for any users that are using your machine I will go ahead and add it as a system variable as I'm the only user on my machine go ahead and select path then edit click new and now add the path to mysql's bin folder if you are using the MySQL server then most likely the path is C program files MySQL my SQL Server version I think eight is the last one and then bin but in my case I'm using samp so the path is C examp Le and then bin great now click ok ok and then again okay now let's see if we can use MySQL through Bash if you're using gitbash in vs code like I do you'll have to restart vs code first because it's currently unaware of the new system variable we just added right so now let's run MySQL Dash V to get the MySQL version and yeah as you can see now we're going to run any MySQL commands we want let's also test this using command prompt MySQL Dash V and yeah we can use MySQL through command prompt as well alright guys that was it I hope this video helped you get MySQL working on your machine stick around this channel for more similar zero class content and if you have any feedback comments or concerns leave them in the comment section and I will do my best to respond to all of them see you in the next one
Info
Channel: Neutron Dev
Views: 4,067
Rating: undefined out of 5
Keywords: mysql, xampp, windows
Id: 98FxE0gojLQ
Channel Id: undefined
Length: 3min 3sec (183 seconds)
Published: Mon Feb 27 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.