Install MySql server on zsh shell | zsh: command not found: mysql (Fixed) on Macbook M1 / M2

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 345

  • @ismayilismayilov4229
    @ismayilismayilov4229 2 года назад +12

    Thank you so much! First it didn't work, then I quitted the terminal and started again, and it worked well!

  • @fadibadriya4537
    @fadibadriya4537 9 дней назад

    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

  • @i.m4531
    @i.m4531 2 года назад +6

    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

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Be sure to subscribe.

  • @deepak.chakala018
    @deepak.chakala018 2 года назад +9

    That was absolutely helpful, you deserve more audiance. Cheers.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Be sure to subscribe.

  • @ryanjuniaralyasa4968
    @ryanjuniaralyasa4968 Год назад +13

    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?

  • @celestehill4646
    @celestehill4646 9 месяцев назад +1

    Amazing...I spent several days trying to install Mysql on my Macbook Air M1 2020. Thanks a bunch..

  • @Vishaljhagoa
    @Vishaljhagoa 2 года назад +4

    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!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад +1

      Glad I could help ! Be sure to subscribe.

  • @naphtaliodinakachi1508
    @naphtaliodinakachi1508 Год назад +1

    This helped me. It works. restart the terminal afterwards

  • @odesagovori2468
    @odesagovori2468 2 года назад +5

    You are fantastic! Thanks tons! It worked the second time I tried after I gave it a restart. 😃 Cheers!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad to hear that. Don't forget to subscribe.

  • @M.vukasinovic-x4r
    @M.vukasinovic-x4r Год назад +2

    Best video on this problem. thank you very much!

  • @chrisbryant01
    @chrisbryant01 Год назад +2

    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.

  • @anurag8068
    @anurag8068 Год назад +3

    If you are facing error in u -root -p
    Quit the terminal and Star again
    Problem will be solved 👍

  • @ajinkyapol3757
    @ajinkyapol3757 2 года назад +1

    Hats off to you...... struggled a lot to install.. finally works like magic. keep it up

  • @sliviawu3804
    @sliviawu3804 2 года назад +2

    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!

  • @mayankarora2730
    @mayankarora2730 2 года назад

    Thanks a lot Arjun. I followed step-by-step after failing for 2 hours. May god bless you!

  • @ShanifaMohammed
    @ShanifaMohammed 7 месяцев назад

    I got the same zsh: command not found mysql message again. I quit the terminal and opened again and it worked!

  • @abhijitgowda3475
    @abhijitgowda3475 8 месяцев назад +1

    Thank you so much. Very helpful. Crisp and clear

  • @myersandrada7345
    @myersandrada7345 2 года назад

    This helped me with my zsh: command not found: mysql problem. You're a life saver! Thanks a lot, mate!!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Be sure to subscribe.

  • @ayushichadha8196
    @ayushichadha8196 2 года назад +1

    thank you so much. after a lot of attempts, finally got it.

  • @clippedbythesecond
    @clippedbythesecond 11 месяцев назад +1

    you are honestly god send thank you so much have a blessed day! new subscriber

  • @tessasarah3593
    @tessasarah3593 2 года назад +2

    Thank you so much, now I can use mysql on my macbook

  • @aerielleb6901
    @aerielleb6901 2 года назад +1

    Thanks! This worked. It didn't previously however after resetting my mac, it seemed to work fine!

  • @khushal8298
    @khushal8298 2 года назад +1

    Thank you sir!! You are Fantastic it worked after I restart my terminal

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped ! Be sure to subscribe.

  • @albigjeka
    @albigjeka Год назад +1

    Thank you for your support!

  • @joycebordador5754
    @joycebordador5754 2 года назад

    Thank you so much.....since I am using the latest Macbook version, took me days to install this.
    Thank you so much!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Be sure to subscribe.

  • @lalunarinjani8808
    @lalunarinjani8808 2 года назад +1

    Thank You So much brother, it works on me. The tutorial it's great and easy to understand, hope you have a nice day!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped ! Be sure to subscribe.

  • @НикитаСеребряков-е1в

    Thank you very much! It works and helped me to solve my problem.

  • @weichun2011
    @weichun2011 Год назад +1

    thanks for leading us step by step!!!

  • @Mr.AhmedAlzeidi
    @Mr.AhmedAlzeidi 2 года назад +1

    Thank you ... this tutorial very helpful .... so thank you very much ,and good luck

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped ! Be sure to subscribe.

  • @RAMGANESHSAMALA
    @RAMGANESHSAMALA Год назад +5

    when i enter mysql -u root -p
    it showing zsh:command not found:mysql

    • @wajen-9243
      @wajen-9243 Месяц назад

      Did you fix the problem?

  • @virushan
    @virushan 2 года назад +1

    Thank You so much dear ❤️. Now I can use mqsql

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      You are welcome 😊 Be sure to subscribe.

  • @hammam92
    @hammam92 Год назад +3

    After I type mysql -u root -p and press enter, it gives this
    " zsh: command not found: mysql "
    Any help please !!

  • @jiteshparas9528
    @jiteshparas9528 2 года назад +1

    Thank You so much this video is really very help full for me.

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      You are most welcome ! Don't forget to subscribe.

  • @afzhalahmed2051
    @afzhalahmed2051 2 года назад +1

    Another thank you from India.

  • @maramsendi4026
    @maramsendi4026 Год назад +1

    When I write commend mysql -u root -p it shows that commend not found, What should i do?

  • @iAmDrigoSteel
    @iAmDrigoSteel Год назад +3

    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

    • @viswatara1231
      @viswatara1231 Год назад

      same, were you able to fix it

    • @moresub2589
      @moresub2589 Год назад +1

      @@viswatara1231 this is for zsh , you need the other video with bash version

    • @viswatara1231
      @viswatara1231 Год назад

      @@moresub2589 got it thank you

  • @olubukola107
    @olubukola107 10 месяцев назад +1

    You are a lifesaver thank you so much

  • @apurbapanja1693
    @apurbapanja1693 Год назад +1

    Very Helpful. Thanks !!!❤

  • @subhashri1818
    @subhashri1818 Год назад

    Thank you so much sir ,after so many attempts i got it

  • @pablogoncalves9880
    @pablogoncalves9880 5 месяцев назад +1

    Thank u so much for help me!

  • @phuonganhphung26
    @phuonganhphung26 2 года назад +1

    Work like a charm, thanks so much!!!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped! Don't forget to subscribe.

  • @beatmusician1055
    @beatmusician1055 8 месяцев назад +1

    Thanks for your help

  • @subratkumar7779
    @subratkumar7779 2 года назад +1

    thank you so much brother ❤❤❤❤
    it helped a lot

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad to hear that Be sure to subcribe.

  • @kuladeepakkarapaka7794
    @kuladeepakkarapaka7794 2 года назад +1

    Thank you so much bro keep up the good work

  • @pianosakura5211
    @pianosakura5211 2 года назад +1

    Thanks a lot. Worked perfectly!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it helped ! Be sure to subscribe.

  • @Hartinhart
    @Hartinhart Год назад +1

    thanks bro! finally i solved thx so much

  • @anitafalchi1050
    @anitafalchi1050 2 года назад +1

    Arjun, you're the best :} thank you

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful. Be sure to subscribe.

  • @eylonashkenazi3218
    @eylonashkenazi3218 Год назад +1

    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".

  • @user-from-kz479
    @user-from-kz479 2 года назад +1

    Thank you so much Arjun🔥🔥🔥

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad you liked it. Be sure to subscribe.

  • @11_nimishowhal59
    @11_nimishowhal59 Год назад +1

    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

  • @aman_deep21
    @aman_deep21 Год назад +1

    Thank you very much, very helpful)

  • @itsrissss3871
    @itsrissss3871 Год назад +1

    thank you, this is super helpful!

  • @AlexandrBeckers
    @AlexandrBeckers Год назад +1

    U make my day! Thx!

  • @popodevries-zou4830
    @popodevries-zou4830 Год назад +3

    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! 🙇‍♀

    • @Rexia
      @Rexia Год назад +1

      Put the MySQL statement below the Python stuff. After that, save in Nano and restart the Terminal.

    • @moresub2589
      @moresub2589 Год назад +1

      I have entered the same one for python and sql export statements it has worked. You may need to restart the terminal.

  • @user-uv9mw8zi5m
    @user-uv9mw8zi5m 7 месяцев назад +1

    thank you so much

  • @eduardnarolskyi4905
    @eduardnarolskyi4905 2 года назад +1

    thank you! its really good helpful!

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Glad it was helpful! Don't forget to subscribe.

  • @nampallyadithyavardhan5843
    @nampallyadithyavardhan5843 2 года назад +1

    really this video helped me a lot

  • @tristanboulay1064
    @tristanboulay1064 Год назад +1

    i followed your steps but i still have mysql command not found...

  • @chandraprakash471
    @chandraprakash471 2 года назад +1

    Love u ,❤️ thanks for help 😁

  • @louisyoongdev
    @louisyoongdev 2 года назад +1

    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)

    • @shubhamchaudhary571
      @shubhamchaudhary571 2 года назад

      I am getting the same error . Please help me if you went through this ? How you move further ?

    • @sonyaalexandra965
      @sonyaalexandra965 8 месяцев назад

      im getting this same eror how you fix that
      @@shubhamchaudhary571

  • @sathwikupadhyaya8783
    @sathwikupadhyaya8783 Год назад +1

    Thanks buddy

  • @travelvme2350
    @travelvme2350 2 месяца назад +1

    thanks alot man

  • @DecimaFernando
    @DecimaFernando Год назад +1

    Great support. Thank you

  • @FreddyPunches
    @FreddyPunches Год назад +1

    Let’s goooooooo!! Thank you!

  • @RISHUKUMAR-b3h
    @RISHUKUMAR-b3h Год назад +1

    thanks it really helpful

  • @prag4u896
    @prag4u896 10 месяцев назад +1

    Thanku so much bro❤

  • @andrevt223
    @andrevt223 Год назад +1

    Very helpful, thanks

  • @chockalingampalaniappan6298
    @chockalingampalaniappan6298 Год назад +1

    I am getting command not found: mysql
    Can you please help me with it

  • @konstandinosdimitriou2301
    @konstandinosdimitriou2301 2 года назад +1

    tnx man I love you

  • @josephavila258
    @josephavila258 8 месяцев назад +1

    lifesaver!!

  • @gayathriyaganti2902
    @gayathriyaganti2902 2 года назад +1

    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

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Did you try restarting your terminal ?

    • @praji1202
      @praji1202 2 года назад +4

      @@CodeWithArjun yes but showing command not found

    • @tk-yc2on
      @tk-yc2on Год назад

      @@CodeWithArjun restarting worked for me - thank you so much

  • @unnatixlr8
    @unnatixlr8 10 месяцев назад +1

    Thanks a lot man.

  • @khalidmajed3240
    @khalidmajed3240 2 года назад +1

    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 .

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      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

    • @taniyameghani66
      @taniyameghani66 Год назад

      @@CodeWithArjun I m facing this issue yet. what do i do ?

    • @motivationinside2261
      @motivationinside2261 Год назад

      @@taniyameghani66 Me same issue any solution ??

    • @taniyameghani66
      @taniyameghani66 Год назад

      @@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.

  • @nisargdelvadiya0625
    @nisargdelvadiya0625 Год назад +1

    thanku so much brotherrrr

  • @sametzorlu8458
    @sametzorlu8458 Год назад +1

    hi thanx for this video but i can not see .zprofile . do you know why? even i installed lates version mysql and restart mac.

    • @CodeWithArjun
      @CodeWithArjun  Год назад

      you have to create it by typing touch .zprofile

  • @ekanshjindal9147
    @ekanshjindal9147 11 месяцев назад

    i am unable to access mysql, it shows the original path is stored somewhere else and always shows that mysql is not found

  • @dzedbaradzed3550
    @dzedbaradzed3550 2 года назад +1

    Thank you! very usefull!

  • @pranavmenon4673
    @pranavmenon4673 11 месяцев назад +1

    even after everything for some reason at the end after typing mysql -u root -p ..it shows mysql command not found..what to do?

    • @thanos8463
      @thanos8463 8 месяцев назад

      same problem
      got any solutions ??

  • @aaronmoroney2066
    @aaronmoroney2066 2 года назад +1

    Thank you so much man!

  • @jorgealbertosanchezjimenez6103
    @jorgealbertosanchezjimenez6103 9 месяцев назад

    But If you are using oh my zsh then you have to add path inside .zshrc file.

  • @rossivlog9188
    @rossivlog9188 2 года назад +1

    Thank you so much finally balla talla vayo 🤣

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      Haha Sahi ho. Nepali comment auda khusi lagyo.

  • @a065vrajnirajbhairajpurasv9
    @a065vrajnirajbhairajpurasv9 2 года назад +2

    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

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      which terminal you are using bash or zsh make sure that first, this if for zsh profile not for bash.

    • @judfmathi8091
      @judfmathi8091 2 года назад +2

      @@CodeWithArjun Same issue. I'm running zsh terminal and have done all the steps from the video. But still got command not found..

    • @judfmathi8091
      @judfmathi8091 2 года назад +4

      I closed the terminal and reopen and it's working. Great thx

    • @jeetteej
      @jeetteej 2 года назад +2

      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

    • @raquelcastillo3106
      @raquelcastillo3106 2 года назад +1

      @@jeetteej I too am having this problem

  • @eduardosaretta1729
    @eduardosaretta1729 19 дней назад +1

    mannnn you is good

  • @dilipgonadev
    @dilipgonadev 8 месяцев назад

    hello sir you work was so helpfull for me
    in my ternimal i need to source every time when i need to run mysql if i closed then agian i need to source .zshprofile then only mysql server runs in terminal please hepls with it sir

  • @sowdavarambalaji2496
    @sowdavarambalaji2496 2 года назад +2

    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 ?

    • @CodeWithArjun
      @CodeWithArjun  2 года назад

      If you have done the things properly and still not working then restart your laptop.

    • @A2ZZ555
      @A2ZZ555 2 года назад

      @@CodeWithArjun thanks sir..this worked.

  • @xiesiyan1139
    @xiesiyan1139 2 года назад +1

    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?

    • @xiesiyan1139
      @xiesiyan1139 2 года назад +2

      Fixed with reset password, thank you. Now it works!

    • @revansahelsakuswana7590
      @revansahelsakuswana7590 2 года назад

      ​@@xiesiyan1139 I do the same problem like you, then I tried to using my iCloud password and then it works! Thank you Arjun!🙏

    • @delidiana3715
      @delidiana3715 2 года назад

      @@xiesiyan1139 how to restart my password?

  • @sanjeevchopra4148
    @sanjeevchopra4148 Год назад

    The pathway has been copied but it is again showing zsh: command not found: MySQL !! what to do ??

  • @digvijayraut8607
    @digvijayraut8607 Год назад +1

    Thank you!
    💝

  • @Madhavi621
    @Madhavi621 Год назад +1

    thank you so much.

  • @jajamaruuu
    @jajamaruuu 11 месяцев назад +1

    thank you!

  • @vickyk2447
    @vickyk2447 Год назад +1

    tip: if the mysql command fails to work, quit terminal for a few minutes and it should work

  • @ChaseLeoncini
    @ChaseLeoncini 7 месяцев назад

    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. :(

  • @firdovsihasanzada
    @firdovsihasanzada Год назад +1

    Thank you very much

    • @CodeWithArjun
      @CodeWithArjun  Год назад +1

      Glad you like it. Be sure to subscribe.

  • @rahulailaboina8670
    @rahulailaboina8670 8 месяцев назад

    I am getting problem after path was exported??
    what to do

  • @stefanstanescu7816
    @stefanstanescu7816 Год назад

    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?

  • @thecerebrum.
    @thecerebrum. 11 месяцев назад

    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.

    • @ekanshjindal9147
      @ekanshjindal9147 11 месяцев назад

      hey i am facing the exact same issue for me if you find the solution can you please help me as well

  • @DiptiAgrawal-r1s
    @DiptiAgrawal-r1s 3 месяца назад

    Hello. I am still getting the command not found : mysql error on my Mac M2

  • @penjarlasarala2734
    @penjarlasarala2734 2 года назад

    Please post complete video download ,install and setting.

  • @dharmanandanexportpvtltd25
    @dharmanandanexportpvtltd25 Год назад

    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

  • @ushaprudhvi6121
    @ushaprudhvi6121 2 года назад +1

    Thank you so much!!