I spent almost 2 hours trying to research problem on google and talking to apple support, I watched your video and solved it in 10 minutes, you are a G
Thank you so much! Finally it worked! after doing all process still it was showing the same error so I quit the terminal and restarted again and it worked! Thank you so much!
Very helpful, thanks so much for making this! One suggestion I have is that as someone who's not working with MySQL, bin files, and PATH, some parts you were just a tad bit hard to keep up with...but I think that comes down to user error more than anything, :). Of course, I was able to just pause and rewind as much as needed and you explained everything wonderfully.
So I had a little issue with SQL on my MacBook M1. Took some digging, but found the solution. Terminal was saying "zsh: command not found: mysql", but I found the fix, just type "/usr/local/mysql/bin/mysql -u root -p".
Thank you so much for this video, Arjun! This is super helpful! I was referring to other Mac tutorials and didn't know that it is different for M1 Macbook. Your video saved me!
hi, please help, I am not able to install this. There is a problem with path, I have executed everything as you've shown but somehow there is a python stuff in the path automatically, I don't know how, moreover after entering mysql -u -p(something like that from the video) it says zsh : command not found: mysql your reply will be helpful.
Thanks for the video. Quick question: @ 4:40 when I type "cat.zprofile" export PATH=S{PATH}:/usr/local/mysql-8.0.28-macos11-x86_64/bin # Setting PATH for Python 3.9 # The original version is saved in .zprofile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}" export PATH And when I run "mysql -u root -p" I get "zsh: command not found: mysql" Any thoughts? Really appreciate your help!
Thank you so much! However there was some issue that occurred to me - when I type "mysql -u root -p" in terminal, it reports that "zsh: command not found: mysql". My zprofile also looks different from yours when I perform "cat .zprofile": "export PATH=${PATH}:/usr/local/mysql-8.0.31-macos12-arm64/bin # Setting PATH for Python 3.9 # The original version is saved in .zprofile.pysave PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}" export PATH" I'm wondering if someone has a solution for this one? Thanks in advance! 🙇♀
How to fix when after type mysql -u root -p show this error? ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Hi first thanks for your help, but I have faced the same problem "comment command not found: mysql" and I did the same steps that you have done but still it’s not working so what should I do .
make sure if you are using bash or zsh shell if your shell is bash i have a separate video for that otherwise make sure to restart your terminal. If still the same problem i will be happy to help
@@motivationinside2261 in the export path command, by mistake i did write path in small letters instead of capital letters. check every step once again. also restart your terminal.
Bro I have been trying to add mysql in zhs profile ,i have spend nearly 8 hrs on it tried more than 40 methods still no result bro , finally i have seen this video and successfully added path , after executing mysql -u root -p , i am getting same error no command .. any suggestions ?
write path in the .zshrc file it worked for me :--- vi ~/.zshrc export PATH=${PATH}:/usr/local/mysql-8.0.28-macos11-x86_64/bin if path is alredy there just add path using colon :{your path}
there is already a python path in that profile file and hence there are 2 paths so while running cat it shows both paths and next command when I put mysql -u root -p, it says command not found: mysql
I m facing same issue as have 2 paths: one for python. I have tried both .bash and .zsh profile still getting the same error "zsh: command not found: mysql". Default profile is .zsh. Have quit terminal number of times. But not getting to the password prompt. @CodeWithArjun please let me know a solution
Hello ! I already have something in zprofile .What should i do? If i do this my work in mysql workbench will be deleted or i will have problems with it?
HI arun hope you are doing fine, i am just start to use Macbook M2 and i am able to use import command in VS Code as i need to import mysql-connector , could you help me to find solution
Hello Arjun, after installed and fixed the zsh problem I can enter password. But the terminal shows "Access denied for user 'root'@'localhost' (using password: YES)".what should I do next?
could someone please tell me what he is saying to type into the terminal. I'm on a zsh mac and can't understand him. Is he saying control + Alt + Right? I'm so confused. :(
Thank you so much. I have been struggling to install SQL for my MacOS. You are the only one who helped me resolve the issue
Glad it helped! Be sure to subscribe.
Thank you so much! First it didn't work, then I quitted the terminal and started again, and it worked well!
Great! Don't forget to subscribe.
Same as well for me
Same!
Thank you so much!
Same here
I spent almost 2 hours trying to research problem on google and talking to apple support, I watched your video and solved it in 10 minutes, you are a G
That was absolutely helpful, you deserve more audiance. Cheers.
Glad it helped! Be sure to subscribe.
Thank you so much! Finally it worked! after doing all process still it was showing the same error so I quit the terminal and restarted again and it worked! Thank you so much!
Glad I could help ! Be sure to subscribe.
Amazing...I spent several days trying to install Mysql on my Macbook Air M1 2020. Thanks a bunch..
Glad it helped
Very helpful, thanks so much for making this! One suggestion I have is that as someone who's not working with MySQL, bin files, and PATH, some parts you were just a tad bit hard to keep up with...but I think that comes down to user error more than anything, :). Of course, I was able to just pause and rewind as much as needed and you explained everything wonderfully.
So I had a little issue with SQL on my MacBook M1. Took some digging, but found the solution. Terminal was saying "zsh: command not found: mysql", but I found the fix, just type "/usr/local/mysql/bin/mysql -u root -p".
Thank you so much for this video, Arjun! This is super helpful! I was referring to other Mac tutorials and didn't know that it is different for M1 Macbook. Your video saved me!
Glad it was helpful! Be sure to subscribe.
@@CodeWithArjun pls also provide the command in description too
man, just want say thanks very much, amazing guy.
This helped me with my zsh: command not found: mysql problem. You're a life saver! Thanks a lot, mate!!
Glad it helped! Be sure to subscribe.
Thanks a lot Arjun. I followed step-by-step after failing for 2 hours. May god bless you!
Be sure to subscribe.
I've already followed all of your steps, but the "zsh: command not found: mysql" problem is still exist. I'm using Macbook M2. Can you help me Arjun?
same problem
Same 😢
Same problem
Same here. I have homebrew files in the .zprofile , file might be causing issues 🤔
@@tik2276same 😖 how to fix that
Hats off to you...... struggled a lot to install.. finally works like magic. keep it up
Glad to hear that
This helped me. It works. restart the terminal afterwards
You are fantastic! Thanks tons! It worked the second time I tried after I gave it a restart. 😃 Cheers!
Glad to hear that. Don't forget to subscribe.
you are honestly god send thank you so much have a blessed day! new subscriber
Thank you so much. Very helpful. Crisp and clear
Glad it was helpful!
when i enter mysql -u root -p
it showing zsh:command not found:mysql
Did you fix the problem?
@@wajen-9243 restart the terminal
thank you so much. after a lot of attempts, finally got it.
Glad it helped!
I got the same zsh: command not found mysql message again. I quit the terminal and opened again and it worked!
Thank you so much, now I can use mysql on my macbook
Glad it helped
Thank you for your support!
Thank you too!
Let’s goooooooo!! Thank you!
Hope you enjoyed it!
Thank you sir!! You are Fantastic it worked after I restart my terminal
Glad it helped ! Be sure to subscribe.
If you are facing error in u -root -p
Quit the terminal and Star again
Problem will be solved 👍
Thanks mate
Thank you so much.....since I am using the latest Macbook version, took me days to install this.
Thank you so much!
Glad it helped! Be sure to subscribe.
Thank You So much brother, it works on me. The tutorial it's great and easy to understand, hope you have a nice day!
Glad it helped ! Be sure to subscribe.
Another thank you from India.
So nice of you
Thanks! This worked. It didn't previously however after resetting my mac, it seemed to work fine!
Glad it helped!
After I type mysql -u root -p and press enter, it gives this
" zsh: command not found: mysql "
Any help please !!
happened with me too
How to solve it, sir?😢
Thank you very much! It works and helped me to solve my problem.
Glad it helped!
Thank you so much sir ,after so many attempts i got it
Well done
Thank You so much dear ❤️. Now I can use mqsql
You are welcome 😊 Be sure to subscribe.
even after everything for some reason at the end after typing mysql -u root -p ..it shows mysql command not found..what to do?
same problem
got any solutions ??
Thank you ... this tutorial very helpful .... so thank you very much ,and good luck
Glad it helped ! Be sure to subscribe.
Hey dude, so I got through everything correctly but when I use the
MySQL -u root -p
It says -bash: mysql: command not found
Any help?
Thanks
same, were you able to fix it
@@viswatara1231 this is for zsh , you need the other video with bash version
@@moresub2589 got it thank you
thanks bro! finally i solved thx so much
Glad I could help
You are a lifesaver thank you so much
Very Helpful. Thanks !!!❤
Thank You so much this video is really very help full for me.
You are most welcome ! Don't forget to subscribe.
When I write commend mysql -u root -p it shows that commend not found, What should i do?
thank you so much brother ❤❤❤❤
it helped a lot
Glad to hear that Be sure to subcribe.
Arjun, you're the best :} thank you
Glad it was helpful. Be sure to subscribe.
thanks for leading us step by step!!!
You are so welcome!
Thank you so much bro keep up the good work
Glad to help, Be sure to subscribe.
Work like a charm, thanks so much!!!
Glad it helped! Don't forget to subscribe.
hi, please help, I am not able to install this. There is a problem with path, I have executed everything as you've shown but somehow there is a python stuff in the path automatically, I don't know how, moreover after entering mysql -u -p(something like that from the video) it says zsh : command not found: mysql
your reply will be helpful.
hey i am facing the exact same issue for me if you find the solution can you please help me as well
Thank you so much Arjun🔥🔥🔥
Glad you liked it. Be sure to subscribe.
Love u ,❤️ thanks for help 😁
Happy to help!
Thanks for the video. Quick question: @ 4:40 when I type "cat.zprofile"
export PATH=S{PATH}:/usr/local/mysql-8.0.28-macos11-x86_64/bin
# Setting PATH for Python 3.9
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH
And when I run "mysql -u root -p" I get "zsh: command not found: mysql"
Any thoughts? Really appreciate your help!
yes same issue up here
any solution?
restart the terminal
i followed your steps but i still have mysql command not found...
Thanku so much bro❤
U make my day! Thx!
I'm glad!
Thanks a lot. Worked perfectly!
Glad it helped ! Be sure to subscribe.
Thank u so much for help me!
really this video helped me a lot
Thanks be sure to subscribe.
sir in my side ,not showing path like that as you mentioned in video at 4:54
This doesn’t work!!!
Thank you very much, very helpful)
Glad it helped!
hi thanx for this video but i can not see .zprofile . do you know why? even i installed lates version mysql and restart mac.
you have to create it by typing touch .zprofile
Thanks for your help
thank you, this is super helpful!
Glad you like it. Be sure to subscribe.
Thank you so much! However there was some issue that occurred to me - when I type "mysql -u root -p" in terminal, it reports that "zsh: command not found: mysql".
My zprofile also looks different from yours when I perform "cat .zprofile":
"export PATH=${PATH}:/usr/local/mysql-8.0.31-macos12-arm64/bin
# Setting PATH for Python 3.9
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH"
I'm wondering if someone has a solution for this one? Thanks in advance! 🙇♀
Put the MySQL statement below the Python stuff. After that, save in Nano and restart the Terminal.
I have entered the same one for python and sql export statements it has worked. You may need to restart the terminal.
Thanks a lot man.
I am getting command not found: mysql
Can you please help me with it
How to fix when after type mysql -u root -p show this error?
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I am getting the same error . Please help me if you went through this ? How you move further ?
im getting this same eror how you fix that
@@shubhamchaudhary571
thanku so much brotherrrr
Hi first thanks for your help, but I have faced the same problem "comment command not found: mysql" and I did the same steps that you have done but still it’s not working so what should I do .
make sure if you are using bash or zsh shell if your shell is bash i have a separate video for that otherwise make sure to restart your terminal.
If still the same problem i will be happy to help
@@CodeWithArjun I m facing this issue yet. what do i do ?
@@taniyameghani66 Me same issue any solution ??
@@motivationinside2261 in the export path command, by mistake i did write path in small letters instead of capital letters. check every step once again. also restart your terminal.
Very helpful, thanks
Glad it was helpful!
thank you! its really good helpful!
Glad it was helpful! Don't forget to subscribe.
sirr still my system was showing msql command not found what to do sirr pls hlp me
...
Have you restarted your terminal ??
does it download the workbench for you
thanks it really helpful
I am getting problem after path was exported??
what to do
Bro I have been trying to add mysql in zhs profile ,i have spend nearly 8 hrs on it tried more than 40 methods still no result bro , finally i have seen this video and successfully added path , after executing mysql -u root -p , i am getting same error no command .. any suggestions ?
If you have done the things properly and still not working then restart your laptop.
@@CodeWithArjun thanks sir..this worked.
complete process went well same as video but, when testing for mysql it's showing same error "zsh:command not fund:mysql".Please help me in this
Did you try restarting your terminal ?
@@CodeWithArjun yes but showing command not found
@@CodeWithArjun restarting worked for me - thank you so much
Sir it is still showing zsh: command not found: mysql
what to do now can you please help????
write path in the .zshrc file it worked for me :---
vi ~/.zshrc
export PATH=${PATH}:/usr/local/mysql-8.0.28-macos11-x86_64/bin
if path is alredy there just add path using colon :{your path}
i am unable to access mysql, it shows the original path is stored somewhere else and always shows that mysql is not found
tnx man I love you
Happy to help.
It was all good till rechecking the path but after enetering
mysql -u root -p
I am again getting same error of
zsh: command not found: mysql
Does this trick also work for m2 chip thanks !?
yes
Thank you so much man!
Happy to help!
Thank you so much, Sir. This was really helpful. Where is your tip jar?! :)
Glad it was helpful! Happy to help you sir.
PayPal : paypal.me/codewitharjun
@@CodeWithArjun Sent! Again, thank you so much. This was really helpful.
@@goodmusic284 Thank you so much man. I will try my best to bring new more helpful content. This is a best motivation for me.
tip: if the mysql command fails to work, quit terminal for a few minutes and it should work
Its working but can we directly open the MySQL?
Thank you so much finally balla talla vayo 🤣
Haha Sahi ho. Nepali comment auda khusi lagyo.
there is already a python path in that profile file and hence there are 2 paths so while running cat it shows both paths and next command when I put mysql -u root -p, it says command not found: mysql
which terminal you are using bash or zsh make sure that first, this if for zsh profile not for bash.
@@CodeWithArjun Same issue. I'm running zsh terminal and have done all the steps from the video. But still got command not found..
I closed the terminal and reopen and it's working. Great thx
I m facing same issue as have 2 paths: one for python. I have tried both .bash and .zsh profile still getting the same error "zsh: command not found: mysql". Default profile is .zsh. Have quit terminal number of times. But not getting to the password prompt. @CodeWithArjun please let me know a solution
@@jeetteej I too am having this problem
Thank you! very usefull!
Glad to hear that!
Hello ! I already have something in zprofile .What should i do? If i do this my work in mysql workbench will be deleted or i will have problems with it?
HI arun hope you are doing fine, i am just start to use Macbook M2 and i am able to use import command in VS Code as i need to import mysql-connector , could you help me to find solution
Hello Arjun, after installed and fixed the zsh problem I can enter password. But the terminal shows "Access denied for user 'root'@'localhost' (using password: YES)".what should I do next?
Fixed with reset password, thank you. Now it works!
@@xiesiyan1139 I do the same problem like you, then I tried to using my iCloud password and then it works! Thank you Arjun!🙏
@@xiesiyan1139 how to restart my password?
in which folder the database will be stored?
thank you so much.
Perfect.
Thanks !
Glad you like it! Be sure to subscribe.
Hello. I am still getting the command not found : mysql error on my Mac M2
Great video!! But when I write Create database demo, I have no response, no query. I restarted but still the same. Any suggestions?
It's won't show any response, but you have to check after that , just write show databases, it should show all the available databases.
The pathway has been copied but it is again showing zsh: command not found: MySQL !! what to do ??
could someone please tell me what he is saying to type into the terminal. I'm on a zsh mac and can't understand him. Is he saying control + Alt + Right? I'm so confused. :(
it still showing command not found
what would I do ?
which terminal you are using bash or zsh make sure that first, this if for zsh profile not for bash.