Install MySql 8.0.30 on Zsh Shell | zsh: command not found: MySql (Resolved) on MacOS M1/M2

Поделиться
HTML-код
  • Опубликовано: 6 окт 2024
  • In this Video I will be showing you the Steps how you can Install MySql on your MacOS Machines M1/M2.
    And If you are getting this kind of problem "zsh: command not found: mysql", Then I have also shown you how you can resolve that error by following the Steps in adding up the Path in Terminal.
    MySQL Download URL - dev.mysql.com/...
    MySQL Default Installation Location - /usr/local/mysql-8.0.30-macos12-arm64/bin
    Terminal Commands -
    Check Shell Installed on Machine - echo $SHELL
    Check Shell Installed on your Machines - cat /etc/shells
    Create Shell File =
    Create Bash_Profile/ZSH ENV File - touch .bash_profile/touch .zshenv (Create Shell Depending upon Default Shell on your Machine)
    We can also create .zprofile rather than .zshenv File.
    Open Bash File - vi .bash_profile/vi .zshenv
    Export Command for MySQL - export PATH=${PATH}:/usr/local/mysql-8.0.30-macos12-arm64/bin
    Exit Terminal Command - exit
    MySQL Commands -
    First We Need to Open the Terminal and Write MySQL Command - mysql -u root -p
    Command to Check Databases - show databases;
    SQL Command to Create Database - create database database_name;
    Use Specific Database - use database_name;
    #mysql #shell #zshell #java

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

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

    THANKS MATE!! I WAS HAVING TROUBLE WITH THIS FOR A DAY, I FORGET TO START THE MYSQL FROM SETTINGS.

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

    Thankyou mate for the Solution. Really to the point video!

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

    Thank you so much Prashant it was big help for me, keep making such videos
    👍👍

  • @SapnaM-t2m
    @SapnaM-t2m Год назад

    Thank you so much, after lots of video , this video solved my problem.

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

    I appreciate this video! It helped me resolve my issue.😀

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

    You Made My Day!
    Thank you so much:)

  • @JulioStark-o4n
    @JulioStark-o4n Год назад +1

    Thank you man! You helped me so much!

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

    bro thank you
    😀

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

    Please how do you open the new page? After I copy the Where: link, I l do not understand how do you open a new page because you pass very fast that step and you do not explain how you do it.

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

      To open a new page in Mac - CMD + T, Link i have already shared in video desc.

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

    Thanks, it works

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

    Ty bro this very helpful for me 😊

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

    how to import large datasets into mysql on Mac . please help

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

    command not found again showing

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

    Thankyou so much

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

    can you please tell which text editor are you using.

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

    Thanks bhava

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

    I followed the same path as ypu did. but it is showing the same problem command not found. can you help me?

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

      Have you checked in System Settings MySQL is Installed or not, If yes Kindly exit and quit your terminal and then start mysql and try with the Command

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

      @@prashantrana546 Yes it worked. i restarted the mac. Thank you so much.

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

      Yeah Mate no worries👍🏻

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

    Can you help me... I followed your steps but when I clicked on the pkg installer it says “mysql-8.0.32-macos13-x86_64.pkg” cannot be opened because it is from an unidentified developer. macOS cannot verify that this app is free from malware. so I can't get pass the download..

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

      Shannon, if you're using MacOS Intel Based Chip, then you have downloaded the correct pkg, And you need to Just Allow the Popup after double clicking the .dmg file. As MacOS will ask on every downloaded file from Internet.

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

      @@prashantrana546 Ok. Thank you!

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

    Helpfull

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

    I can't get .zshenv??

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

      You can create one, Using vi zshenv, And then enter the data and save the file

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

    Sir I have a bug in MySQL

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

      What?

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

      @@prashantrana546
      It not showing tables in MySQL
      And after quit from MySQL it showing
      MySQL report for MySQLworkbench

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

      @@OgguMohan1511Ok after, selecting specific database, it's not showing any tables, can you create a new one and then try

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

    command not found again showing