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

  Рет қаралды 6,143

Prashant Rana

Prashant Rana

Жыл бұрын

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/downloads/mysql/
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 Жыл бұрын
THANKS MATE!! I WAS HAVING TROUBLE WITH THIS FOR A DAY, I FORGET TO START THE MYSQL FROM SETTINGS.
@sudhanshu_21
@sudhanshu_21 Жыл бұрын
You Made My Day! Thank you so much:)
@mohitjain6041
@mohitjain6041 Жыл бұрын
Thankyou mate for the Solution. Really to the point video!
@user-tf6vy2oh6m
@user-tf6vy2oh6m Жыл бұрын
Thank you man! You helped me so much!
@ashutoshsingh1694
@ashutoshsingh1694 Жыл бұрын
Thank you so much Prashant it was big help for me, keep making such videos 👍👍
@prashantrana546
@prashantrana546 Жыл бұрын
Glad to hear that
@vaishnavimore7672
@vaishnavimore7672 5 ай бұрын
I appreciate this video! It helped me resolve my issue.😀
@user-do8rl6yz3r
@user-do8rl6yz3r 10 ай бұрын
Thank you so much, after lots of video , this video solved my problem.
@omsutar4048
@omsutar4048 Жыл бұрын
Ty bro this very helpful for me 😊
@prashantrana546
@prashantrana546 Жыл бұрын
Happy to help👍🏻
@randhir2588
@randhir2588 Жыл бұрын
Thanks, it works
@Kapa_Kapu
@Kapa_Kapu Жыл бұрын
bro thank you 😀
@jathin3662
@jathin3662 Жыл бұрын
Thankyou so much
@valbonamargjoka6276
@valbonamargjoka6276 Жыл бұрын
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.
@snehashekar1839
@snehashekar1839 5 ай бұрын
how to import large datasets into mysql on Mac . please help
@tusharmawal3950
@tusharmawal3950 11 ай бұрын
Thanks bhava
@ramdayalsharma6721
@ramdayalsharma6721 Жыл бұрын
Helpfull
@Anuragkivani
@Anuragkivani 11 ай бұрын
command not found again showing
@prashantrana546
@prashantrana546 11 ай бұрын
At which Step
@randhir2588
@randhir2588 Жыл бұрын
can you please tell which text editor are you using.
@prashantrana546
@prashantrana546 Жыл бұрын
BBEdit
@randhir2588
@randhir2588 Жыл бұрын
@@prashantrana546 thanks
@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!
@harshvohra5876
@harshvohra5876 Жыл бұрын
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 Жыл бұрын
@@prashantrana546 Yes it worked. i restarted the mac. Thank you so much.
@prashantrana546
@prashantrana546 Жыл бұрын
Yeah Mate no worries👍🏻
@gouravlakshkar3999
@gouravlakshkar3999 9 ай бұрын
I can't get .zshenv??
@prashantrana546
@prashantrana546 9 ай бұрын
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 11 ай бұрын
command not found again showing
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 6 МЛН
Iron Chin ✅ Isaih made this look too easy
00:13
Power Slap
Рет қаралды 35 МЛН
zsh command not found mysql - Fix Provided
6:21
Mukesh otwani
Рет қаралды 25 М.
AMD Almost Went Bankrupt…but were saved by Sony and Microsoft?
5:35
Как установить MySQL на Mac!
6:13
ЕРМАКОВ 2
Рет қаралды 33 М.
How To Access Any Forked GitHub Repositories Data
9:31
Mental Outlaw
Рет қаралды 40 М.
How to Install MySQL 8.0.30 on MAC OS M1/M2
9:35
Prashant Rana
Рет қаралды 19 М.
Mac Fanboy Tries ARM Windows Laptops
31:40
Snazzy Labs
Рет қаралды 165 М.